コード例 #1
0
 public AbstractConnectionFactory(Codec codec, IChannelHandler heartbeatHandler, IChannelHandler handler, ConfigurableInstance confInstance)
 {
     this.confInstance     = confInstance;
     this.codec            = codec ?? throw new ArgumentException("null codec");
     this.heartbeatHandler = heartbeatHandler;
     this.handler          = handler ?? throw new ArgumentException("null handler");
 }
コード例 #2
0
 public RpcConnectionFactory(ConcurrentDictionary <Type, UserProcessor> userProcessors, ConfigurableInstance configInstance)
     : base(new RpcCodec(), new HeartbeatHandler(), new RpcHandler(userProcessors), configInstance)
 {
 }
コード例 #3
0
 public DefaultConnectionFactory(Codec codec, IChannelHandler heartbeatHandler, IChannelHandler handler, ConfigurableInstance configInstance)
     : base(codec, heartbeatHandler, handler, configInstance)
 {
 }