public DefaultChannelHandlerContext(DefaultChannelPipeline pipeline, IChannelHandlerInvoker invoker, string name, IChannelHandler handler) : base(pipeline, invoker, name, GetSkipPropagationFlags(handler)) { Contract.Requires(handler != null); Handler = handler; }
protected AbstractChannel(IChannelId id, IChannel parent) { Contract.Requires(id != null); Id = id; Parent = parent; // ReSharper disable once VirtualMemberCallInContructor _channelUnsafe = NewUnsafe(); _pipeline = new DefaultChannelPipeline(this); }
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; }
public HeadContext(DefaultChannelPipeline pipeline) : base(pipeline, null, "<null>", SkipFlags) { _channel = pipeline.Channel(); }
public TailContext(DefaultChannelPipeline pipeline) : base(pipeline, null, "null", SkipFlags) { }