Пример #1
0
 /// <summary>
 /// Receive a single frame from <paramref name="socket"/>, asynchronously, and decode as a string using <see cref="SendReceiveConstants.DefaultEncoding"/>.
 /// </summary>
 /// <param name="socket">The socket to receive from.</param>
 /// <param name="cancellationToken">The token used to propagate notification that this operation should be canceled.</param>
 /// <returns>The content of the received message frame as a string and a boolean indicate if another frame of the same message follows.</returns>
 public static Task <(string, bool)> ReceiveFrameStringAsync(
     this NetMQSocket socket,
     CancellationToken cancellationToken = default(CancellationToken)
     )
 {
     return(socket.ReceiveFrameStringAsync(SendReceiveConstants.DefaultEncoding, cancellationToken));
 }
Пример #2
0
 public static Task <(string, bool)> ReceiveFrameStringAsync([NotNull] this NetMQSocket socket)
 {
     return(socket.ReceiveFrameStringAsync(SendReceiveConstants.DefaultEncoding));
 }