public FuncStreamHandler(string protocol, StreamHandlerFunc handle = null, AsyncStreamHandlerFunc asyncHandle = null)
        {
            _handle      = handle;
            _asyncHandle = asyncHandle;

            Protocol = protocol;
        }
Exemplo n.º 2
0
        public MultistreamMuxer AddHandler(string protocol, StreamHandlerFunc handle = null, AsyncStreamHandlerFunc asyncHandle = null)
        {
            RemoveHandler(protocol);

            return(AddHandler(new FuncStreamHandler(protocol, handle, asyncHandle)));
        }