Skip to content

Commit

Permalink
update serilog di registration
Browse files Browse the repository at this point in the history
  • Loading branch information
GiampaoloGabba committed May 31, 2024
1 parent 4e77aad commit de4ac5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.5.3</Version>
<Version>1.5.4</Version>
<Authors>Giampaolo Gabba</Authors>
<Description>Easy background task with persistence for ASP.NET Core</Description>
<Copyright>Copyright Giampaolo Gabba</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static EverTaskServiceBuilder AddSerilog(this EverTaskServiceBuilder buil

var logger = loggerConfiguration.CreateLogger();
builder.Services.TryAddSingleton<ILogger>(logger);
builder.Services.TryAddSingleton(typeof(IEverTaskLogger<>), typeof(EverTaskSerilogLogger<>));
builder.Services.AddSingleton(typeof(IEverTaskLogger<>), typeof(EverTaskSerilogLogger<>));

return builder;
}
Expand Down

0 comments on commit de4ac5c

Please sign in to comment.