示例#1
0
 /// <summary>
 /// Gets or creates the channel in the current scope
 /// </summary>
 /// <returns>The channel instance.</returns>
 public IReadChannelEnd <T> GetForRead()
 {
     return(ChannelManager.GetChannel <T>(this).AsReadOnly());
 }
示例#2
0
 /// <summary>
 /// Gets or creates the channel in the current scope
 /// </summary>
 /// <returns>The channel instance.</returns>
 public IWriteChannelEnd <T> GetForWrite()
 {
     return(ChannelManager.GetChannel <T>(this).AsWriteOnly());
 }
示例#3
0
 /// <summary>
 /// Gets or creates the channel in the current scope
 /// </summary>
 /// <returns>The channel instance.</returns>
 public IChannel <T> Get()
 {
     return(ChannelManager.GetChannel <T>(this));
 }