Show / Hide Table of Contents

Class IServiceCollectionBotBrainExtension

Bot brain extension methods for IServiceCollection.

Inheritance
object
IServiceCollectionBotBrainExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class IServiceCollectionBotBrainExtension

Methods

View Source

AddBotBrain(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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX