chore(client): update EmailSender to use new publisher builder API
Pass builder delegate to AddMessagingServicePublisher() calling cfg.AddRabbitMqConnectionFactory(configure) instead of passing Action<RabbitMqConfiguration> directly.
This commit is contained in:
@@ -69,7 +69,7 @@ public static class EmailSender
|
||||
if(IsConnected && onReconnect == OnReconnect.ThrowException)
|
||||
throw new InvalidOperationException("Messaging service is already connected.");
|
||||
|
||||
ConfigureServices += services => services.AddMessagingServicePublisher(configure);
|
||||
ConfigureServices += services => services.AddMessagingServicePublisher(cfg => cfg.AddRabbitMqConnectionFactory(configure));
|
||||
_ = LazyProvider.Value; // Force initialization
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user