コード例 #1
0
        /// <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;
        }
コード例 #2
0
 /// <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)
 {
 }