refactor(logging): ♻ simplify HostRunner return type

This commit is contained in:
Collin M. Barrett 2020-09-24 17:17:33 -05:00
parent d324da9974
commit 6f8d5da9c9

View file

@ -8,7 +8,7 @@ namespace FilterLists.SharedKernel.Logging
{
public static class HostRunner
{
public static async Task<int> TryRunWithLoggingAsync(this IHost host, Func<Task>? runPreHostAsync = default)
public static async Task TryRunWithLoggingAsync(this IHost host, Func<Task>? runPreHostAsync = default)
{
_ = host ?? throw new ArgumentNullException(nameof(host));
@ -27,7 +27,6 @@ public static async Task<int> TryRunWithLoggingAsync(this IHost host, Func<Task>
Log.Information("Initializing host");
await host.RunAsync();
return 0;
}
catch (Exception ex)
{