Class IServiceCollectionDerivedTypesExtension
Derived type extension methods for IServiceCollection.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class IServiceCollectionDerivedTypesExtension
Methods
View SourceAddDerivedTypesAsTransient<T>(IServiceCollection, Assembly?, bool)
Adds derived types to a service collection.
Declaration
public static IServiceCollection AddDerivedTypesAsTransient<T>(this IServiceCollection services, Assembly? assembly = null, bool includeGenericTypes = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection. |
| Assembly | assembly | The assembly to search within. |
| bool | includeGenericTypes | Whether or not to register open generic type definitions. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | A service collection with derived types. |
Type Parameters
| Name | Description |
|---|---|
| T | The type reference for derived types. |