Example #1
0
        public TcpRemoteSocket(IServiceProvider services, IOptions <TcpOptions> options)
        {
            _services = services;

            _options = options.Value ?? new TcpOptions();

            _messagesBuffer = new BufferBlock <IRemoteSocketData>();
        }
Example #2
0
        public ZMQRemoteSocket(IServiceProvider services, IOptions <TcpOptions> options)
        {
            _options = options.Value;

            _inputBuffer = new BufferBlock <IRemoteSocketData>();
        }