Show / Hide Table of Contents

Class GenericClientManagerServiceCollectionsExtensions

Extensions to add a client manager for generic keys and clients.

Inheritance
object
GenericClientManagerServiceCollectionsExtensions
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.dll
Syntax
public static class GenericClientManagerServiceCollectionsExtensions

Methods

View Source

TryAddGenericClientManager<TKey, TClient>(IServiceCollection)

Adds a generic client manager, assuming another client manager is not already registered.

Declaration
public static IServiceCollection TryAddGenericClientManager<TKey, TClient>(this IServiceCollection services) where TKey : notnull where TClient : class, IGameConnect
Parameters
Type Name Description
IServiceCollection services

The services to configure.

Returns
Type Description
IServiceCollection

The configured services.

Type Parameters
Name Description
TKey

The key to use to identify a specific client.

TClient

The client that the client manager uses to establish connections.

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