Skip to content

Commit

Permalink
changes to registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
aaart committed Oct 7, 2024
1 parent 91a45cc commit d515104
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sod.Worker/Modules/InfrastructureModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ protected override void Load(ContainerBuilder builder)
client.ApplicationMessageReceivedAsync += args => broker.Process(args.ApplicationMessage.Topic, Encoding.UTF8.GetString(args.ApplicationMessage.PayloadSegment));
});

builder
.Register(ctx => ctx.Resolve<IManagedMqttClient>().InternalClient)
.As<IMqttClient>()
.SingleInstance();

builder.RegisterType<MqttOutgoingEventPublisher>().As<IOutgoingEventPublisher>().SingleInstance();

builder.RegisterType<InMemoryTaskQueue>().As<ITaskQueue>().SingleInstance();
Expand Down

0 comments on commit d515104

Please sign in to comment.