Working on BackgroundService for Seq Logging
This commit is contained in:
parent
48578b216f
commit
7bcb7b0e66
9 changed files with 240 additions and 53 deletions
20
Core/ModuleRegistry/SeqBackgroundServiceModule.cs
Normal file
20
Core/ModuleRegistry/SeqBackgroundServiceModule.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Autofac;
|
||||
using Core.Telemetry;
|
||||
|
||||
namespace Core.ModuleRegistry
|
||||
{
|
||||
public class SeqBackgroundServiceModule : Module
|
||||
{
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
|
||||
builder.RegisterType<MessageChannel>()
|
||||
.As<IMessageChannel>()
|
||||
.SingleInstance();
|
||||
|
||||
builder.RegisterType<SeqBackgroundService>()
|
||||
.As<Microsoft.Extensions.Hosting.IHostedService>()
|
||||
.SingleInstance();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue