Show / Hide Table of Contents

Class IServiceCollectionExtensions

Extension methods on the service collections to add baggage factories.

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

Methods

View Source

AddClientBaggage<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.

View Source

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.

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