private async Task SendMetricAsync(string metricType, string name, string prefix, string value, string postFix = null) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } await _outputChannel.SendAsync(PrepareMetric(metricType, name, prefix, value, postFix)); }
public static void Send(this IOutputChannel outputChannel, string line) { outputChannel.SendAsync(line).Wait(); }
/// <summary> /// /// </summary> /// <param name="outputChannel"></param> /// <param name="line"></param> public static void Send(this IOutputChannel outputChannel, string line) { outputChannel.SendAsync(line).ConfigureAwait(false).GetAwaiter().GetResult(); }