@@ -13,21 +13,21 @@ public static class AzureFunctionsDiagnostics
1313 public const string OverrideLocalAddressNotAllowedId = "NSBFUNC009" ;
1414 public const string RouteReplyToThisInstanceNotAllowedId = "NSBFUNC010" ;
1515 public const string RouteToThisInstanceNotAllowedId = "NSBFUNC011" ;
16- public const string RouteReplyToAnyInstanceNotAllowedId = "NSBFUNC012" ;
17-
16+ public const string TransportTransactionModeNotAllowedId = "NSBFUNC012" ;
1817 public const string MaxAutoLockRenewalDurationNotAllowedId = "NSBFUNC013" ;
1918 public const string PrefetchCountNotAllowedId = "NSBFUNC014" ;
2019 public const string PrefetchMultiplierNotAllowedId = "NSBFUNC015" ;
2120 public const string TimeToWaitBeforeTriggeringCircuitBreakerNotAllowedId = "NSBFUNC016" ;
2221
2322 public const string EntityMaximumSizeNotAllowedId = "NSBFUNC017" ;
23+ public const string EnablePartitioningNotAllowedId = "NSBFUNC018" ;
2424
2525 const string DiagnosticCategory = "NServiceBus.AzureFunctions" ;
2626
2727 internal static readonly DiagnosticDescriptor PurgeOnStartupNotAllowed = new DiagnosticDescriptor (
2828 id : PurgeOnStartupNotAllowedId ,
2929 title : "PurgeOnStartup is not supported in Azure Functions" ,
30- messageFormat : "Azure Functions endpoints are started when the first message arrives. PurgeOnStartup may purge whenever a new instance is started ." ,
30+ messageFormat : "Azure Functions endpoints do not support PurgeOnStartup." ,
3131 category : DiagnosticCategory ,
3232 defaultSeverity : DiagnosticSeverity . Error ,
3333 isEnabledByDefault : true
@@ -36,7 +36,7 @@ public static class AzureFunctionsDiagnostics
3636 internal static readonly DiagnosticDescriptor LimitMessageProcessingToNotAllowed = new DiagnosticDescriptor (
3737 id : LimitMessageProcessingToNotAllowedId ,
3838 title : "LimitMessageProcessing is not supported in Azure Functions" ,
39- messageFormat : "Azure Functions endpoints do not control the message receiver and cannot limit message processing concurrency ." ,
39+ messageFormat : "Concurrency-related settings are controlled via the Azure Function host.json configuration file ." ,
4040 category : DiagnosticCategory ,
4141 defaultSeverity : DiagnosticSeverity . Error ,
4242 isEnabledByDefault : true
@@ -81,7 +81,7 @@ public static class AzureFunctionsDiagnostics
8181 internal static readonly DiagnosticDescriptor OverrideLocalAddressNotAllowed = new DiagnosticDescriptor (
8282 id : OverrideLocalAddressNotAllowedId ,
8383 title : "OverrideLocalAddress is not supported in Azure Functions" ,
84- messageFormat : "Azure Functions endpoints do not control the message receiver and cannot decide the local address ." ,
84+ messageFormat : "The NServiceBus endpoint address in Azure Functions is determined by the ServiceBusTrigger attribute ." ,
8585 category : DiagnosticCategory ,
8686 defaultSeverity : DiagnosticSeverity . Error ,
8787 isEnabledByDefault : true
@@ -105,15 +105,6 @@ public static class AzureFunctionsDiagnostics
105105 isEnabledByDefault : true
106106 ) ;
107107
108- internal static readonly DiagnosticDescriptor RouteReplyToAnyInstanceNotAllowed = new DiagnosticDescriptor (
109- id : RouteReplyToAnyInstanceNotAllowedId ,
110- title : "RouteReplyToAnyInstance is not supported in Azure Functions" ,
111- messageFormat : "Azure Functions endpoints do not control the message receiver and by default route the replies to any instance." ,
112- category : DiagnosticCategory ,
113- defaultSeverity : DiagnosticSeverity . Warning ,
114- isEnabledByDefault : true
115- ) ;
116-
117108 internal static readonly DiagnosticDescriptor MaxAutoLockRenewalDurationNotAllowed = new DiagnosticDescriptor (
118109 id : MaxAutoLockRenewalDurationNotAllowedId ,
119110 title : "MaxAutoLockRenewalDuration is not supported in Azure Functions" ,
@@ -158,5 +149,23 @@ public static class AzureFunctionsDiagnostics
158149 defaultSeverity : DiagnosticSeverity . Error ,
159150 isEnabledByDefault : true
160151 ) ;
152+
153+ internal static readonly DiagnosticDescriptor EnablePartitioningNotAllowed = new DiagnosticDescriptor (
154+ id : EnablePartitioningNotAllowedId ,
155+ title : "EnablePartitioning is not supported in Azure Functions" ,
156+ messageFormat : "Azure Functions endpoints do not support automatic queue creation." ,
157+ category : DiagnosticCategory ,
158+ defaultSeverity : DiagnosticSeverity . Error ,
159+ isEnabledByDefault : true
160+ ) ;
161+
162+ internal static readonly DiagnosticDescriptor TransportTransactionModeNotAllowed = new DiagnosticDescriptor (
163+ id : TransportTransactionModeNotAllowedId ,
164+ title : "TransportTransactionMode is not supported in Azure Functions" ,
165+ messageFormat : "Transport TransactionMode is controlled by the Azure Service Bus trigger and cannot be configured via the NServiceBus transport configuration API when using Azure Functions." ,
166+ category : DiagnosticCategory ,
167+ defaultSeverity : DiagnosticSeverity . Error ,
168+ isEnabledByDefault : true
169+ ) ;
161170 }
162171}
0 commit comments