Class IServiceCollectionExtensions
Extensions for IServiceCollection to add a connection section that uses Bifrost.
Inherited Members
Namespace: Phoenix.Commander.Bifrost.ConnectionWidget
Assembly: Phoenix.Commander.Bifrost.ConnectionWidget.dll
Syntax
public static class IServiceCollectionExtensions
Methods
View SourceAddConnectionSectionBifrost<TClientManagerAdapterConfig, TClient, TMessage>(IServiceCollection, Action<BifrostBuilder>)
Adds a connection section that uses Bifrost.
Declaration
public static IServiceCollection AddConnectionSectionBifrost<TClientManagerAdapterConfig, TClient, TMessage>(this IServiceCollection services, Action<BifrostBuilder> bifrostConfigurator) where TClientManagerAdapterConfig : class, IPhoenixClientManagerAdapterConfig<BifrostOptions> where TClient : class, IGameConnect, IEquatable<TClient?> where TMessage : class
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection to add the connection section 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 |
|---|---|
| TClientManagerAdapterConfig | The client manager adapter config to use. |
| TClient | The client that the client manager uses. |
| TMessage | The type of the message the client uses to communicate with Microsoft.XboxStudios.Bifrost.Serializer.ISerializer<TMessage>. |