mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(logging): ♻ simplify HostRunner return type
This commit is contained in:
parent
d324da9974
commit
6f8d5da9c9
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue