Example #1
0
 public AmpTcpServerBootstrap(
     ISocketService <AmpMessage> socketService,
     IChannelHandlerPipeline handlerPipeline,
     ILoggerFactory loggerFactory,
     IOptions <RpcServerOptions> hostOption = null)
     : base(socketService, handlerPipeline, loggerFactory, hostOption)
 {
 }
Example #2
0
        public TcpServerBootstrap(
            ISocketService <TMessage> socketService,
            IChannelHandlerPipeline handlerPipeline,
            ILoggerFactory loggerFactory,
            IOptions <TcpHostOption> hostOption = null
            )
        {
            Preconditions.CheckNotNull(handlerPipeline, nameof(handlerPipeline));
            Preconditions.CheckNotNull(socketService, nameof(socketService));

            _options         = hostOption?.Value ?? new TcpHostOption();
            _socketService   = socketService;
            _handlerPipeline = handlerPipeline;
            _logger          = loggerFactory.CreateLogger(GetType());
        }
Example #3
0
 public TcpClient(TcpClientOption clientOption, IChannelHandlerPipeline handlerPipeline)
 {
     _clientOption    = clientOption;
     _handlerPipeline = handlerPipeline;
     InitBootstrap();
 }
Example #4
0
 public TcpClient(IChannelHandlerPipeline handlerPipeline)
     : this(new TcpClientOption(), handlerPipeline)
 {
 }
Example #5
0
 public TcpClient(IOptions <TcpClientOption> clientOption, IChannelHandlerPipeline handlerPipeline)
     : this(clientOption.Value, handlerPipeline)
 {
 }
Example #6
0
 public RpcSocketClient(IOptions <RpcClientOptions> clientOption, IChannelHandlerPipeline handlerPipeline)
     : base(clientOption, handlerPipeline)
 {
 }