From 446e99a08b7d5dd9180392ba41f0dd12e6f208f3 Mon Sep 17 00:00:00 2001 From: Thomas Sarmis Date: Fri, 23 Feb 2024 03:36:31 +0200 Subject: [PATCH] add ClientProvidedName on publisher connection (#517) Co-authored-by: Thomas Sarmis --- .../Configurations/ModelPooledObjectPolicy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bus/EasyCaching.Bus.RabbitMQ/Configurations/ModelPooledObjectPolicy.cs b/bus/EasyCaching.Bus.RabbitMQ/Configurations/ModelPooledObjectPolicy.cs index 3c45159f..976ee88e 100644 --- a/bus/EasyCaching.Bus.RabbitMQ/Configurations/ModelPooledObjectPolicy.cs +++ b/bus/EasyCaching.Bus.RabbitMQ/Configurations/ModelPooledObjectPolicy.cs @@ -28,7 +28,8 @@ private IConnection GetConnection() VirtualHost = _options.VirtualHost, RequestedConnectionTimeout = System.TimeSpan.FromMilliseconds(_options.RequestedConnectionTimeout), SocketReadTimeout = System.TimeSpan.FromMilliseconds(_options.SocketReadTimeout), - SocketWriteTimeout = System.TimeSpan.FromMilliseconds(_options.SocketWriteTimeout) + SocketWriteTimeout = System.TimeSpan.FromMilliseconds(_options.SocketWriteTimeout), + ClientProvidedName = _options.ClientProvidedName, }; return factory.CreateConnection();