public static DefaultChannelId NewInstance() { var id = new DefaultChannelId(); id.Init(); return(id); }
/// <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();
/// <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()) { }
public static DefaultChannelId NewInstance() { var id = new DefaultChannelId(); id.Init(); return id; }