public DefaultChannelHandlerContext(DefaultChannelPipeline pipeline, IChannelHandlerInvoker invoker, string name,
                                     IChannelHandler handler)
     : base(pipeline, invoker, name, GetSkipPropagationFlags(handler))
 {
     Contract.Requires(handler != null);
     Handler = handler;
 }
示例#2
0
 protected AbstractChannel(IChannelId id, IChannel parent)
 {
     Contract.Requires(id != null);
     Id     = id;
     Parent = parent;
     // ReSharper disable once VirtualMemberCallInContructor
     _channelUnsafe = NewUnsafe();
     _pipeline      = new DefaultChannelPipeline(this);
 }
示例#3
0
        protected AbstractChannelHandlerContext(DefaultChannelPipeline pipeline, IChannelHandlerInvoker invoker,
                                                string name,
                                                int skipPropagationFlags)
        {
            Contract.Requires(pipeline != null);
            Contract.Requires(name != null);

            Pipeline             = pipeline;
            _invoker             = invoker;
            Name                 = name;
            SkipPropagationFlags = skipPropagationFlags;
        }
示例#4
0
 public HeadContext(DefaultChannelPipeline pipeline)
     : base(pipeline, null, "<null>", SkipFlags)
 {
     _channel = pipeline.Channel();
 }
示例#5
0
 public TailContext(DefaultChannelPipeline pipeline) : base(pipeline, null, "null", SkipFlags)
 {
 }