コード例 #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();