コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public EventSinkImpl(IncomingStreamRequestHandler requestHandler)
 {
     _requestHandler = requestHandler;
 }