예제 #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));
 }