public static Task SendAsync(this IStatsdClient client, ReadOnlySpan <char> command) { if (client == null) { throw new ArgumentNullException(nameof(client)); } return(client.SendAsync(command.ToString())); }
public static void Send(this IStatsdClient client, ReadOnlySpan <char> command) { if (client == null) { throw new ArgumentNullException(nameof(client)); } client.SendAsync(command.ToString()).GetAwaiter().GetResult(); }