예제 #1
0
 /// <summary>
 /// Poisons this Channel
 /// </summary>
 /// <remarks>
 /// Poisons this Channel instance. Trying to read or write from a poisoned Channel
 /// will result in the Channel throwing a PoisonException. Also if a Choice
 /// instance uses the Channel in one of it's four Select methods, a PoisonException
 /// is thrown from the Channel.
 /// </remarks>
 // <example>
 // - Unbuffered Channel Example -
 // <code><include UnbufferedChannelExample/UnbufferedChannelExample.cs></code>
 // </example>
 // <example>
 // - Buffered Channel Example -
 // <code><include BufferedChannelExample/BufferedChannelExample.cs></code>
 // </example>
 public void Poison()
 {
     internalChannel.Poison();
 }
예제 #2
0
 /// <summary>Poisons the underlying Channel.</summary>
 /// <remarks>Poisons the underlying Channel. Trying to read to or write from a poisoned channel
 /// will result in the channel throwing a PoisonException. Also if a Choice
 /// object uses the channel in one of it's four Select methods, a PoisonException
 /// is thrown from the channel. </remarks>
 // <example>
 // - Unbuffered Channel Example -
 // <code><include UnbufferedChannelExample/UnbufferedChannelExample.cs></code>
 // </example>
 // <example>
 // - Buffered Channel Example -
 // <code><include BufferedChannelExample/BufferedChannelExample.cs></code>
 // </example>
 public void Poison()
 {
     channel.Poison();
 }