Class BifrostFactoryServiceCollectionExtensions
Extension method on IServiceCollection to add a Bifrost client that uses TCP connections.
Inherited Members
Namespace: Microsoft.XboxStudios.ClientManager.Bifrost
Assembly: ClientManager.Bifrost.Abstractions.dll
Syntax
public static class BifrostFactoryServiceCollectionExtensions
Methods
View SourceAddBifrostFactory<TClient, TMessage>(IServiceCollection, Action<BifrostBuilder>)
Adds the services required for the BifrostFactory<TClient, TMessage> class.
Declaration
public static IServiceCollection AddBifrostFactory<TClient, TMessage>(this IServiceCollection services, Action<BifrostBuilder> bifrostConfigurator) where TMessage : class
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collections to add the services to. |
| Action<BifrostBuilder> | bifrostConfigurator | Used to configure a serializer and any other options. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The configured service collection. |
Type Parameters
| Name | Description |
|---|---|
| TClient | The type of client to construct. |
| TMessage | The type of the message the client uses to communicate with Microsoft.XboxStudios.Bifrost.Serializer.ISerializer<TMessage>. |