예제 #1
0
 /// <summary>
 /// Invokes the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 public void Invoke(IUpstreamMessage message)
 {
     _mine.HandleUpstream(this, message);
     InvokeUpstream();
     InvokeDownstream();
 }
 public void Invoke(IPipelineMessage message)
 {
     _myHandler.HandleUpstream(this, message);
 }
예제 #3
0
 /// <summary>
 /// Send an event upstream (from channels to application)
 /// </summary>
 /// <param name="handlerToStartFrom">Handler that should be invoked</param>
 /// <param name="channelEvent">Event to send</param>
 public void SendUpstream(IUpstreamHandler handlerToStartFrom, IChannelEvent channelEvent)
 {
     ChannelHandlerContext ctx = _contexts[handlerToStartFrom];
     handlerToStartFrom.HandleUpstream(ctx, channelEvent);
 }