@@ -63,7 +63,16 @@ private static IHealthChecksBuilder AddTopicChecks(this IHealthChecksBuilder bui
6363 if ( routingConfig == null || routingConfig . AutomatedHealthCheckDisabled )
6464 return builder ;
6565
66- foreach ( var queues in routingConfig . NamedLinks . Where ( x => x . Value . LinkType == LinkType . Queue ) )
66+ foreach (
67+ var queues in routingConfig . NamedLinks . Where ( x =>
68+ x . Value . LinkType == LinkType . Queue
69+ && ! string . Equals (
70+ x . Key ,
71+ "InboundCustomsDeclarationReceivedTopic" ,
72+ StringComparison . InvariantCultureIgnoreCase
73+ )
74+ )
75+ )
6776 {
6877 builder . AddTypeActivatedCheck < TopicHealthCheck > (
6978 queues . Key ,
@@ -75,6 +84,16 @@ private static IHealthChecksBuilder AddTopicChecks(this IHealthChecksBuilder bui
7584 return builder ;
7685 }
7786
87+ [ SuppressMessage (
88+ "SonarLint" ,
89+ "S1172" ,
90+ Justification = "Parameter will be required immediately after the upcoming release"
91+ ) ]
92+ [ SuppressMessage (
93+ "SonarLint" ,
94+ "S125" ,
95+ Justification = "Commented code will be required immediately after the upcoming release"
96+ ) ]
7897 private static IHealthChecksBuilder AddQueueChecks (
7998 this IHealthChecksBuilder builder ,
8099 AwsSqsOptions ? awsSqsOptions ,
@@ -84,15 +103,20 @@ IConfiguration configuration
84103 if ( awsSqsOptions is null || string . IsNullOrEmpty ( awsSqsOptions . OutboundClearanceDecisionsQueueName ) )
85104 return builder ;
86105
87- builder . AddTypeActivatedCheck < QueueHealthCheck > (
88- "OutboundClearanceDecisionsQueue" ,
89- failureStatus : HealthStatus . Unhealthy ,
90- args : [ "OutboundClearanceDecisionsQueue" , awsSqsOptions . OutboundClearanceDecisionsQueueName , configuration ]
91- ) ;
106+ // builder.AddTypeActivatedCheck<QueueHealthCheck>(
107+ // "OutboundClearanceDecisionsQueue",
108+ // failureStatus: HealthStatus.Unhealthy,
109+ // args: ["OutboundClearanceDecisionsQueue", awsSqsOptions.OutboundClearanceDecisionsQueueName, configuration]
110+ // );
92111
93112 return builder ;
94113 }
95114
115+ [ SuppressMessage (
116+ "SonarLint" ,
117+ "S125" ,
118+ Justification = "Commented code will be required immediately after the upcoming release"
119+ ) ]
96120 private static IHealthChecksBuilder AddApiChecks (
97121 this IHealthChecksBuilder builder ,
98122 DataApiOptions ? dataApiOptions ,
@@ -101,20 +125,20 @@ private static IHealthChecksBuilder AddApiChecks(
101125 {
102126 if ( dataApiOptions is not null && ! string . IsNullOrEmpty ( dataApiOptions . BaseAddress ) )
103127 {
104- builder . AddTypeActivatedCheck < ApiHealthCheck < DataApiOptions > > (
105- "TradeImportsDataApi" ,
106- failureStatus : HealthStatus . Unhealthy ,
107- args : [ "TradeImportsDataApi" , "/health/authorized" , dataApiOptions ]
108- ) ;
128+ // builder.AddTypeActivatedCheck<ApiHealthCheck<DataApiOptions>>(
129+ // "TradeImportsDataApi",
130+ // failureStatus: HealthStatus.Unhealthy,
131+ // args: ["TradeImportsDataApi", "/health/authorized", dataApiOptions]
132+ // );
109133 }
110134
111135 if ( decisionComparerApiOptions is not null && ! string . IsNullOrEmpty ( decisionComparerApiOptions . BaseAddress ) )
112136 {
113- builder . AddTypeActivatedCheck < ApiHealthCheck < DecisionComparerApiOptions > > (
114- "TradeImportsDecisionComparerApi" ,
115- failureStatus : HealthStatus . Unhealthy ,
116- args : [ "DecisionComparerApi" , "/health/authorized" , decisionComparerApiOptions ]
117- ) ;
137+ // builder.AddTypeActivatedCheck<ApiHealthCheck<DecisionComparerApiOptions>>(
138+ // "TradeImportsDecisionComparerApi",
139+ // failureStatus: HealthStatus.Unhealthy,
140+ // args: ["DecisionComparerApi", "/health/authorized", decisionComparerApiOptions]
141+ // );
118142 }
119143
120144 return builder ;
0 commit comments