예제 #1
0
 public static bool TryReceiveString(this IRoutingIdSocket socket, TimeSpan timeout,
                                     out uint routingId, [NotNullWhen(returnValue: true)] out string?str,
                                     CancellationToken cancellationToken = default)
 {
     return(socket.TryReceiveString(timeout, SendReceiveConstants.DefaultEncoding, out routingId, out str, cancellationToken));
 }
예제 #2
0
 public static bool TryReceiveString(this IRoutingIdSocket socket, Encoding encoding, out uint routingId,
                                     [NotNullWhen(returnValue: true)] out string?str)
 {
     return(socket.TryReceiveString(TimeSpan.Zero, encoding, out routingId, out str));
 }