/// <summary> /// Appends a ChannelHandler at the last position of this pipeline. // The name of the handler to append is taken from the NameAttribute of the handler class. /// </summary> /// <typeparam name="T">type of the handler to add.</typeparam> /// <param name="channelPipeline">The channel pipeline.</param> /// <returns></returns> public static IChannelPipeline AddLast <T>(this IChannelPipeline channelPipeline) where T : class, IChannelHandler { return(channelPipeline.AddLast2(Activator.CreateInstance <T>())); }