File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
bus/EasyCaching.Bus.RabbitMQ
src/EasyCaching.Core/Configurations Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ IPooledObjectPolicy<IModel> _objectPolicy
64
64
VirtualHost = _options . VirtualHost ,
65
65
RequestedConnectionTimeout = System . TimeSpan . FromMilliseconds ( _options . RequestedConnectionTimeout ) ,
66
66
SocketReadTimeout = System . TimeSpan . FromMilliseconds ( _options . SocketReadTimeout ) ,
67
- SocketWriteTimeout = System . TimeSpan . FromMilliseconds ( _options . SocketWriteTimeout )
67
+ SocketWriteTimeout = System . TimeSpan . FromMilliseconds ( _options . SocketWriteTimeout ) ,
68
+ ClientProvidedName = _options . ClientProvidedName
68
69
} ;
69
70
70
71
_subConnection = factory . CreateConnection ( ) ;
Original file line number Diff line number Diff line change @@ -51,5 +51,10 @@ public class BaseRabbitMQOptions
51
51
/// Gets or sets queue message automatic deletion time (in milliseconds). Default 864000000 ms (10 days).
52
52
/// </summary>
53
53
public int QueueMessageExpires { get ; set ; } = 864000000 ;
54
+
55
+ /// <summary>
56
+ /// Gets or sets the client-provided name for the rabbit connection. Default null (handled by rabbit client)
57
+ /// </summary>
58
+ public string ClientProvidedName { get ; set ; }
54
59
}
55
60
}
You can’t perform that action at this time.
0 commit comments