Example #1
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="parent">The parent of this channel. Pass <c>null</c> if there's no parent.</param>
 /// <param name="id">An <see cref="IChannelId"/> for the new channel.</param>
 protected AbstractChannel(IChannel parent, IChannelId id)
 {
     this.Parent        = parent;
     this.Id            = id;
     this.channelUnsafe = this.NewUnsafe();
     this.pipeline      = this.NewChannelPipeline();
 }
        public DefaultChannelHandlerContext(
            DefaultChannelPipeline pipeline, IEventExecutor executor, string name, IChannelHandler handler)
            : base(pipeline, executor, name, GetSkipPropagationFlags(handler))
        {
            Contract.Requires(handler != null);

            this.Handler = handler;
        }
        protected AbstractChannelHandlerContext(DefaultChannelPipeline pipeline, IEventExecutor executor,
                                                string name, SkipFlags skipPropagationDirections)
        {
            Contract.Requires(pipeline != null);
            Contract.Requires(name != null);

            this.pipeline             = pipeline;
            this.Name                 = name;
            this.executor             = executor;
            this.SkipPropagationFlags = skipPropagationDirections;
        }
Example #4
0
 public PendingHandlerRemovedTask(DefaultChannelPipeline pipeline, AbstractChannelHandlerContext ctx)
     : base(pipeline, ctx)
 {
 }
Example #5
0
 protected PendingHandlerCallback(DefaultChannelPipeline pipeline, AbstractChannelHandlerContext ctx)
 {
     this.Pipeline = pipeline;
     this.Ctx      = ctx;
 }
Example #6
0
 public HeadContext(DefaultChannelPipeline pipeline)
     : base(pipeline, null, HeadName, SkipFlags)
 {
     this.channelUnsafe = pipeline.Channel.Unsafe;
     this.SetAdded();
 }
Example #7
0
 public TailContext(DefaultChannelPipeline pipeline)
     : base(pipeline, null, TailName, SkipFlags)
 {
     this.SetAdded();
 }