diff --git a/CrossChannel/Channel/Channel.cs b/CrossChannel/Channel/Channel.cs index d43121d..888ad0d 100644 --- a/CrossChannel/Channel/Channel.cs +++ b/CrossChannel/Channel/Channel.cs @@ -5,21 +5,51 @@ namespace CrossChannel; +/// +/// Represents an abstract channel. +/// public abstract class Channel { + /// + /// The threshold value for trimming the channel list. + /// public const int TrimThreshold = 32; + + /// + /// The threshold value for checking weak references in the channel list. + /// public const int CheckReferenceThreshold = 32; + /// + /// Gets the maximum number of links allowed in the channel. + /// public int MaxLinks { get; internal set; } + /// + /// Gets or sets the index of the node in the channel. + /// internal int NodeIndex { get; set; } + /// + /// Gets the broker object associated with the channel. + /// + /// The broker object. internal abstract object GetBroker(); } +/// +/// Represents a channel interface for a specific service. +/// +/// The type of the service. public interface IChannel where TService : class, IRadioService { + /// + /// Opens a channel for the specified service instance. + /// + /// The service instance. + /// Specifies whether to use a weak reference for the service instance. + /// The channel link if the channel is successfully opened; otherwise, null. Channel.Link? Open(TService instance, bool weakReference = false); } diff --git a/Directory.Build.props b/Directory.Build.props index ace01f1..210eece 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@  - 2.0.2 + 2.0.3 latest enable true