Example #1
0
        public static void ProcessReceive(Composition.IExecutor executor, IChannel channel, object data)
        {
            //如果执行器参数为空,不抛出异常,直接退出
            if (executor == null)
            {
                return;
            }

            //通过执行器执行当前请求
            executor.Execute(new ReceivedEventArgs(channel, data));
        }
Example #2
0
        public static void ProcessReceive(Composition.IExecutor executor, ReceivedEventArgs args)
        {
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            //如果执行器参数为空,不抛出异常,直接退出
            if (executor == null)
            {
                return;
            }

            //通过执行器执行当前请求
            executor.Execute(args);
        }
 public ChannelContext(Composition.IExecutor executor, object data, IChannel channel) : base(executor, data)
 {
     _channel = channel;
 }