Exemplo n.º 1
0
        public ComposerBase(IWhisperRequestFactory <TRequest, TOpcode> requestFactory, IDictionary <string, IWhisperCommand <TSession, TRequest> > commandDictionary) : base()
        {
            this.requestFactory = requestFactory;

            if (commandDictionary.IsReadOnly)
            {
                this.commandDictionary = commandDictionary;
            }
            else
            {
                this.commandDictionary = new ReadOnlyDictionary <string, IWhisperCommand <TSession, TRequest> >(commandDictionary);
            }
        }
Exemplo n.º 2
0
 public ShardComposerFactory(IWhisperRequestFactory <ShardRequest, ShardClientOpcode> requestFactory)
 {
     this.requestFactory = requestFactory;
 }
Exemplo n.º 3
0
 public AuthComposer(IWhisperRequestFactory <AuthRequest, AuthRequestOpcode> requestFactory, IDictionary <string, IWhisperCommand <AuthSession, AuthRequest> > commandDictionary) : base(requestFactory, commandDictionary)
 {
 }
Exemplo n.º 4
0
 public AuthComposerFactory(IWhisperRequestFactory <AuthRequest, AuthRequestOpcode> requestFactory)
 {
     this.requestFactory = requestFactory;
 }
Exemplo n.º 5
0
 public ShardComposer(IWhisperRequestFactory <ShardRequest, ShardClientOpcode> requestFactory, IDictionary <string, IWhisperCommand <ShardSession, ShardRequest> > commandDictionary, PacketCipher cipher) : base(requestFactory, commandDictionary)
 {
     this.cipher = cipher;
 }