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();