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:
2026-11-02 15:02:46 +01:00
parent 376a22580b
commit 8bbf6e1e3d

View File

@@ -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
}