Пример #1
0
        public static DefaultChannelId NewInstance()
        {
            var id = new DefaultChannelId();

            id.Init();
            return(id);
        }
Пример #2
0
 /// <summary>
 /// Returns a new <see cref="DefaultChannelId"/> instance. Subclasses may override this method to assign custom
 /// <see cref="IChannelId"/>s to <see cref="IChannel"/>s that use the <see cref="AbstractChannel"/> constructor.
 /// </summary>
 /// <returns>A new <see cref="DefaultChannelId"/> instance.</returns>
 protected virtual IChannelId NewId() => DefaultChannelId.NewInstance();
Пример #3
0
 /// <summary>
 /// Creates a new instance.
 ///
 /// @param parent
 ///        the parent of this channel. {@code null} if there's no parent.
 /// </summary>
 protected AbstractChannel(IChannel parent)
     : this(parent, DefaultChannelId.NewInstance())
 {
 }
Пример #4
0
 public static DefaultChannelId NewInstance()
 {
     var id = new DefaultChannelId();
     id.Init();
     return id;
 }