コード例 #1
0
        public static Task SendAsync(this IStatsdClient client, ReadOnlySpan <char> command)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.SendAsync(command.ToString()));
        }
コード例 #2
0
        public static void Send(this IStatsdClient client, ReadOnlySpan <char> command)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            client.SendAsync(command.ToString()).GetAwaiter().GetResult();
        }