public void Log(LogParams logParams) { foreach (var provider in Providers) { provider.LogAsync(logParams).GetAwaiter().GetResult(); } }
public async Task LogAsync(LogParams logParams) { foreach (var provider in Providers) { await provider.LogAsync(logParams); } }
public async Task WriteAsync(LogParams logParams, TextWriter textWriter) { await textWriter.WriteLineAsync(logParams.MessageType + ": " + logParams.Message); await textWriter.FlushAsync(); }
public async Task LogAsync(LogParams logParams) { await Task.Run(() => Console.WriteLine(logParams.MessageType + ": " + logParams.Message)); }
public async Task LogAsync(LogParams logParams) { await _txtLoggerWriter.WriteAsync(logParams, _writer); }