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)); }
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)); }