/// <summary> /// Registers a stream handler on this channel. /// </summary> /// <param name="handler">A <see cref="IEventStreamHandler"/>, or null to deregister.</param> public void SetStreamHandler(IEventStreamHandler handler) { BinaryMessageHandler binaryHandler = null; if (handler != null) { binaryHandler = new IncomingStreamRequestHandler(this, handler).OnMessage; } BinaryMessenger.SetMessageHandler(Name, binaryHandler); }
public EventSinkImpl(IncomingStreamRequestHandler requestHandler) { _requestHandler = requestHandler; }