public DefaultChannelHandlerContext(DefaultChannelPipeline pipeline, IChannelHandlerInvoker invoker, string name,
                                     IChannelHandler handler)
     : base(pipeline, invoker, name, GetSkipPropagationFlags(handler))
 {
     Contract.Requires(handler != null);
     Handler = handler;
 }
Beispiel #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);
 }
Beispiel #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;
        }
Beispiel #4
0
 public HeadContext(DefaultChannelPipeline pipeline)
     : base(pipeline, null, "<null>", SkipFlags)
 {
     _channel = pipeline.Channel();
 }
Beispiel #5
0
 public TailContext(DefaultChannelPipeline pipeline) : base(pipeline, null, "null", SkipFlags)
 {
 }