44
55 public static class AzureFunctionsDiagnostics
66 {
7- public const string PurgeOnStartupNotAllowedId = "NSBAF0001" ;
8- public const string LimitMessageProcessingToNotAllowedId = "NSBAF0002" ;
9- public const string DefineCriticalErrorActionNotAllowedId = "NSBAF0003" ;
10- public const string SetDiagnosticsPathNotAllowedId = "NSBAF0004" ;
11- public const string MakeInstanceUniquelyAddressableNotAllowedId = "NSBAF0005" ;
12- public const string UseTransportNotAllowedId = "NSBAF0006" ;
13- public const string OverrideLocalAddressNotAllowedId = "NSBAF0007" ;
14- public const string RouteReplyToThisInstanceNotAllowedId = "NSBAF0008" ;
15- public const string RouteToThisInstanceNotAllowedId = "NSBAF0009" ;
7+ public const string PurgeOnStartupNotAllowedId = "NSBFUNC003" ;
8+ public const string LimitMessageProcessingToNotAllowedId = "NSBFUNC004" ;
9+ public const string DefineCriticalErrorActionNotAllowedId = "NSBFUNC005" ;
10+ public const string SetDiagnosticsPathNotAllowedId = "NSBFUNC006" ;
11+ public const string MakeInstanceUniquelyAddressableNotAllowedId = "NSBFUNC007" ;
12+ public const string UseTransportNotAllowedId = "NSBFUNC008" ;
13+ public const string OverrideLocalAddressNotAllowedId = "NSBFUNC009" ;
14+ public const string RouteReplyToThisInstanceNotAllowedId = "NSBFUNC010" ;
15+ public const string RouteToThisInstanceNotAllowedId = "NSBFUNC011" ;
16+ public const string RouteReplyToAnyInstanceNotAllowedId = "NSBFUNC012" ;
1617
1718 const string DiagnosticCategory = "NServiceBus.AzureFunctions" ;
1819
@@ -82,7 +83,7 @@ public static class AzureFunctionsDiagnostics
8283 internal static readonly DiagnosticDescriptor RouteReplyToThisInstanceNotAllowed = new DiagnosticDescriptor (
8384 id : RouteReplyToThisInstanceNotAllowedId ,
8485 title : "RouteReplyToThisInstance is not supported in Azure Functions" ,
85- messageFormat : "Azure Functions endpoints do not control the message receiver and cannot configure receiver routing." ,
86+ messageFormat : "Azure Functions endpoints do not control the message receiver and cannot configure specific instance routing." ,
8687 category : DiagnosticCategory ,
8788 defaultSeverity : DiagnosticSeverity . Error ,
8889 isEnabledByDefault : true
@@ -91,10 +92,19 @@ public static class AzureFunctionsDiagnostics
9192 internal static readonly DiagnosticDescriptor RouteToThisInstanceNotAllowed = new DiagnosticDescriptor (
9293 id : RouteToThisInstanceNotAllowedId ,
9394 title : "RouteToThisInstance is not supported in Azure Functions" ,
94- messageFormat : "Azure Functions endpoints do not control the message receiver and cannot configure receiver routing." ,
95+ messageFormat : "Azure Functions endpoints do not control the message receiver and cannot configure specific instance routing." ,
9596 category : DiagnosticCategory ,
9697 defaultSeverity : DiagnosticSeverity . Error ,
9798 isEnabledByDefault : true
9899 ) ;
100+
101+ internal static readonly DiagnosticDescriptor RouteReplyToAnyInstanceNotAllowed = new DiagnosticDescriptor (
102+ id : RouteReplyToAnyInstanceNotAllowedId ,
103+ title : "RouteReplyToAnyInstance is not supported in Azure Functions" ,
104+ messageFormat : "Azure Functions endpoints do not control the message receiver and by default route the replies to any instance." ,
105+ category : DiagnosticCategory ,
106+ defaultSeverity : DiagnosticSeverity . Warning ,
107+ isEnabledByDefault : true
108+ ) ;
99109 }
100110}
0 commit comments