Exemplo n.º 1
0
 //Construction
 public TServerAsync(TProcessorAsync processor,
           TServerTransportAsync serverTransport)
     : this(processor, serverTransport,
      new TTransportFactoryAsync(),
      new TTransportFactoryAsync(),
      new TCompactProtocolAsync.Factory(),
      new TCompactProtocolAsync.Factory(),
      DefaultLogDelegate)
 {
 }
Exemplo n.º 2
0
 public TServerAsync(TProcessorAsync processor,
           TServerTransportAsync serverTransport,
           TTransportFactoryAsync transportFactory,
           TProtocolFactoryAsync protocolFactory)
     : this(processor,
      serverTransport,
      transportFactory,
      transportFactory,
      protocolFactory,
      protocolFactory,
        DefaultLogDelegate)
 {
 }
Exemplo n.º 3
0
 public TServerAsync(TProcessorAsync processor,
     TServerTransportAsync serverTransport,
     TTransportFactoryAsync inputTransportFactory,
     TTransportFactoryAsync outputTransportFactory,
     TProtocolFactoryAsync inputProtocolFactory,
     TProtocolFactoryAsync outputProtocolFactory,
     LogDelegate logDelegate)
 {
     this.processorFactory = new TSingletonProcessorFactoryAsync(processor);
     this.serverTransport = serverTransport;
     this.inputTransportFactory = inputTransportFactory;
     this.outputTransportFactory = outputTransportFactory;
     this.inputProtocolFactory = inputProtocolFactory;
     this.outputProtocolFactory = outputProtocolFactory;
     this.logDelegate = (logDelegate != null) ? logDelegate : DefaultLogDelegate;
 }
 public TSingletonProcessorFactoryAsync(TProcessorAsync processor)
 {
     processor_ = processor;
 }