示例#1
0
 /// <summary>
 /// Writes the channel asynchronously
 /// </summary>
 /// <returns>The task for awaiting completion.</returns>
 /// <param name="self">The channel to write.</param>
 /// <param name="offer">The two-phase offer.</param>
 /// <param name="value">The value to write.</param>
 public static Task WriteAsync(this IUntypedChannel self, object value, ITwoPhaseOffer offer)
 {
     return(UntypedAccessMethods.CreateWriteAccessor(self).WriteAsync(self, value, offer));
 }
示例#2
0
 /// <summary>
 /// Create a write request for the given channel.
 /// </summary>
 /// <param name="self">The channel to request the write to.</param>
 /// <param name="value">The value to write.</param>
 /// <returns>The created request</returns>
 public static IMultisetRequestUntyped RequestWrite(this IUntypedChannel self, object value)
 {
     return(UntypedAccessMethods.CreateWriteAccessor(self).RequestWrite(value, self));
 }
示例#3
0
 /// <summary>
 /// Writes the channel asynchronously
 /// </summary>
 /// <returns>The task for awaiting completion.</returns>
 /// <param name="self">The channel to write.</param>
 /// <param name="value">The value to write.</param>
 /// <param name="timeout">The write timeout.</param>
 /// <param name="cancelToken">The cancellation token</param>
 public static Task WriteAsync(this IUntypedChannel self, object value, TimeSpan timeout, CancellationToken cancelToken)
 {
     return(UntypedAccessMethods.CreateWriteAccessor(self).WriteAsync(self, value, new TimeoutOffer(timeout, cancelToken)));
 }