/// <inheritdoc /> public ProxiedManagedClientSession(IManagedNetworkServerClient <TPayloadWriteType, TPayloadReadType> internalManagedNetworkClient, SessionDetails details, [NotNull] MessageHandlerService <TPayloadReadType, TPayloadWriteType, TMessageContextType> authMessageHandlerService, IGenericMessageContextFactory <TPayloadWriteType, TMessageContextType> messageContextFactory) : base(internalManagedNetworkClient, details) { if (authMessageHandlerService == null) { throw new ArgumentNullException(nameof(authMessageHandlerService)); } AuthMessageHandlerService = authMessageHandlerService; MessageContextFactory = messageContextFactory; }
/// <inheritdoc /> public GenericProxiedManagedClientSession(IManagedNetworkServerClient <TPayloadWriteType, TPayloadReadType> internalManagedNetworkClient, SessionDetails details, [NotNull] MessageHandlerService <TPayloadReadType, TPayloadWriteType, IProxiedMessageContext <TPayloadWriteType, TPayloadReadType> > authMessageHandlerService, IGenericMessageContextFactory <TPayloadWriteType, IProxiedMessageContext <TPayloadWriteType, TPayloadReadType> > messageContextFactory) : base(internalManagedNetworkClient, details, authMessageHandlerService, messageContextFactory) { }