示例#1
0
 public NettyServerBootstrap(IServerMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs, ILoggerFactory factory, IContextAccessor <TMessage> contextAccessor)
 {
     this._msgCodecs       = msgCodecs;
     this._handler         = handler;
     this._contextAccessor = contextAccessor;
     this.Logger           = factory.CreateLogger(this.GetType());
     this._factory         = factory;
 }
示例#2
0
        public NettyClientBootstrap(IMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs, IOptions <RpcClientOption> option)
        {
            this._clientOption = option;

            _bootstrap = InitBootstrap();
            _handler   = handler;
            _msgCodecs = msgCodecs;
        }
        public NettyClientBootstrap(IClientMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs, IOptions <RpcClientOption> option, ILoggerFactory factory)
        {
            this._clientOption = option;

            _bootstrap = InitBootstrap();
            _handler   = handler;
            _msgCodecs = msgCodecs;

            this.Logger   = factory.CreateLogger(this.GetType());
            this._factory = factory;
        }
示例#4
0
 public NettyRpcMultiplexContext(Bootstrap bootstrap, IMessageCodecs <TMessage> codecs, ILogger logger)
 {
     this._bootstrap = bootstrap;
     this._codecs    = codecs;
     this.Logger     = logger;
 }
示例#5
0
 public NettyRpcContext(IChannel channel, IMessageCodecs <TMessage> codecs)
 {
     this._channel = channel;
     this._codecs  = codecs;
 }
示例#6
0
 public NettyServerBootstrap(IServerMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs, ILoggerFactory factory) : this(handler, msgCodecs, factory, null)
 {
 }
示例#7
0
 public ChannelDecodeHandler(IMessageCodecs <TMessage> codecs)
 {
     this._codecs             = codecs;
     this._nettyBufferManager = new NettyBufferManager();
 }
示例#8
0
 public NettyServerBootstrap(IMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs, IContextAccessor <TMessage> contextAccessor)
 {
     this._msgCodecs       = msgCodecs;
     this._handler         = handler;
     this._contextAccessor = contextAccessor;
 }
示例#9
0
 public NettyServerBootstrap(IMessageHandler <TMessage> handler, IMessageCodecs <TMessage> msgCodecs) : this(handler, msgCodecs, null)
 {
 }
示例#10
0
 public NettyRpcMultiplexContext(Bootstrap bootstrap, IMessageCodecs <TMessage> codecs)
 {
     this._bootstrap = bootstrap;
     this._codecs    = codecs;
 }
 public ChannelDecodeHandler(IMessageCodecs <TMessage> codecs)
 {
     this._codecs = codecs;
 }