Class IServiceCollectionBotBrainExtension
Bot brain extension methods for IServiceCollection.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class IServiceCollectionBotBrainExtension
Methods
View SourceAddBotBrain(IServiceCollection, Assembly?)
Adds builtin bot brain types to a service collection.
Declaration
public static IServiceCollection AddBotBrain(this IServiceCollection services, Assembly? assembly = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection. |
Assembly | assembly | The assembly to search within. |
Returns
Type | Description |
---|---|
IServiceCollection | A service collection with bot brain types. |
AddBotBrain<T>(IServiceCollection)
Adds builtin bot brain types to a service collection.
Declaration
public static IServiceCollection AddBotBrain<T>(this IServiceCollection services) where T : IBotBrain
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection. |
Returns
Type | Description |
---|---|
IServiceCollection | A service collection with bot brain types. |
Type Parameters
Name | Description |
---|---|
T | The type of the bot brain. |
AddBotBrain<TState, TBot, TAction, TBrain>(IServiceCollection)
Adds builtin bot brain types and default editor/serializer implementations to a service collection.
Declaration
public static IServiceCollection AddBotBrain<TState, TBot, TAction, TBrain>(this IServiceCollection services) where TBot : IAutomatedBot<TAction> where TBrain : IBotBrain
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection. |
Returns
Type | Description |
---|---|
IServiceCollection | A service collection with bot brain types. |
Type Parameters
Name | Description |
---|---|
TState | A title-specific state object. |
TBot | A title-specific bot object that implements IAutomatedBot<TAction>. |
TAction | The title-specific bot action. |
TBrain | The title-specific brain that implements IBotBrain. |