public FuncStreamHandler(string protocol, StreamHandlerFunc handle = null, AsyncStreamHandlerFunc asyncHandle = null) { _handle = handle; _asyncHandle = asyncHandle; Protocol = protocol; }
public MultistreamMuxer AddHandler(string protocol, StreamHandlerFunc handle = null, AsyncStreamHandlerFunc asyncHandle = null) { RemoveHandler(protocol); return(AddHandler(new FuncStreamHandler(protocol, handle, asyncHandle))); }