public ExecutionPipelineContext(ExecutionContext context, ExecutionPipeline pipeline, object parameter) : base(context.Executor, parameter)
		{
			if(pipeline == null)
				throw new ArgumentNullException("pipeline");

			_context = context;
			_pipeline = pipeline;
		}
			protected override ExecutionPipelineContext CreatePipelineContext(IExecutionContext context, ExecutionPipeline pipeline, object parameter)
			{
				var channelContext = context as IChannelContext;

				if(channelContext != null)
					return new ChannelPipelineContext(context, pipeline, parameter, channelContext.Channel);

				return base.CreatePipelineContext(context, pipeline, parameter);
			}
        public ExecutionPipelineContext(ExecutionContext context, ExecutionPipeline pipeline, object parameter) : base(context.Executor, parameter)
        {
            if (pipeline == null)
            {
                throw new ArgumentNullException("pipeline");
            }

            _context  = context;
            _pipeline = pipeline;
        }
		public ChannelPipelineContext(ExecutionContext context, ExecutionPipeline pipeline, object data, IChannel channel) : base(context, pipeline, data)
		{
			_channel = channel;
		}
Beispiel #5
0
 protected virtual ExecutionPipelineContext CreatePipelineContext(IExecutionContext context, ExecutionPipeline pipeline, object parameter)
 {
     return(new ExecutionPipelineContext(context, pipeline, parameter));
 }
		protected virtual ExecutionPipelineContext CreatePipelineContext(ExecutionContext context, ExecutionPipeline pipeline, object parameter)
		{
			return new ExecutionPipelineContext(context, pipeline, parameter);
		}