Class IServiceCollectionExtensions
Extension methods on the service collections to add baggage factories.
Inherited Members
Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.Abstractions.dll
Syntax
public static class IServiceCollectionExtensions
Methods
View SourceAddClientBaggage<TBaggageFactory>(IServiceCollection)
Adds a transient baggage factory.
Declaration
public static IServiceCollection AddClientBaggage<TBaggageFactory>(this IServiceCollection services) where TBaggageFactory : class
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services to extend. |
Returns
Type | Description |
---|---|
IServiceCollection | The configured service collections. |
Type Parameters
Name | Description |
---|---|
TBaggageFactory | The type of the baggage factory. |
AddClientBaggage<TBaggage, TClient>(IServiceCollection, BaggageFactoryBase<TBaggage, TClient>)
Adds a singleton baggage factory.
Declaration
public static IServiceCollection AddClientBaggage<TBaggage, TClient>(this IServiceCollection services, BaggageFactoryBase<TBaggage, TClient> baggageFactory)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services to extend. |
BaggageFactoryBase<TBaggage, TClient> | baggageFactory | The baggage factory. |
Returns
Type | Description |
---|---|
IServiceCollection | The configured service collections. |
Type Parameters
Name | Description |
---|---|
TBaggage | The type of the baggage. |
TClient | The type of the client. |