Class SessionManagementExtensions
- Namespace
- BSGameLib.Server
- Assembly
- BSGameLib.Server.dll
Adds session management to the server's services.
public static class SessionManagementExtensions
- Inheritance
-
SessionManagementExtensions
- Inherited Members
Methods
AddSessionManagement<TSessionId>(IServiceCollection)
Registers ConnectionService<TSessionId> as a singleton for both
IConnectionRegistry<TSessionId> and IConnectionManager<TSessionId>,
and registers ISessionIdFactory<TSessionId> for the built-in TSessionId
types that have a built-in factory (Guid → GuidSessionIdFactory).
For custom session ID types, register ISessionIdFactory<TSessionId> separately.
public static void AddSessionManagement<TSessionId>(this IServiceCollection services) where TSessionId : notnull
Parameters
servicesIServiceCollection
Type Parameters
TSessionId