From 3dc365218a9f9ccbc84c392c27ab0442a7b5ccaf Mon Sep 17 00:00:00 2001
From: Thomas Sarmis <t.sarmis@kaizengaming.com>
Date: Tue, 16 Jan 2024 11:21:36 +0200
Subject: [PATCH] add ClientProvidedName on publisher connection

---
 .../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();