@@ -86,6 +86,12 @@ public sealed class ConnectionConfig
8686 /// </summary>
8787 public bool TopologyRecoveryEnabled { get ; }
8888
89+ /// <summary>
90+ /// Filter to include/exclude entities from topology recovery.
91+ /// Default filter includes all entities in topology recovery.
92+ /// </summary>
93+ public TopologyRecoveryFilter TopologyRecoveryFilter { get ; }
94+
8995 /// <summary>
9096 /// Amount of time client will wait for before re-trying to recover connection.
9197 /// </summary>
@@ -127,7 +133,7 @@ public sealed class ConnectionConfig
127133
128134 internal ConnectionConfig ( string virtualHost , string userName , string password , IList < IAuthMechanismFactory > authMechanisms ,
129135 IDictionary < string , object ? > clientProperties , string ? clientProvidedName ,
130- ushort maxChannelCount , uint maxFrameSize , bool topologyRecoveryEnabled ,
136+ ushort maxChannelCount , uint maxFrameSize , bool topologyRecoveryEnabled , TopologyRecoveryFilter topologyRecoveryFilter ,
131137 TimeSpan networkRecoveryInterval , TimeSpan heartbeatInterval , TimeSpan continuationTimeout , TimeSpan handshakeContinuationTimeout , TimeSpan requestedConnectionTimeout ,
132138 bool dispatchConsumersAsync , int dispatchConsumerConcurrency ,
133139 Func < AmqpTcpEndpoint , IFrameHandler > frameHandlerFactory )
@@ -141,6 +147,7 @@ internal ConnectionConfig(string virtualHost, string userName, string password,
141147 MaxChannelCount = maxChannelCount ;
142148 MaxFrameSize = maxFrameSize ;
143149 TopologyRecoveryEnabled = topologyRecoveryEnabled ;
150+ TopologyRecoveryFilter = topologyRecoveryFilter ;
144151 NetworkRecoveryInterval = networkRecoveryInterval ;
145152 HeartbeatInterval = heartbeatInterval ;
146153 ContinuationTimeout = continuationTimeout ;
0 commit comments