Skip to content

Commit dcb96d5

Browse files
committed
some error message wording changes
1 parent e7fec19 commit dcb96d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static class AzureFunctionsDiagnostics
9090
internal static readonly DiagnosticDescriptor RouteReplyToThisInstanceNotAllowed = new DiagnosticDescriptor(
9191
id: RouteReplyToThisInstanceNotAllowedId,
9292
title: "RouteReplyToThisInstance is not supported in Azure Functions",
93-
messageFormat: "Azure Functions endpoints do not control the message receiver and cannot configure specific instance routing.",
93+
messageFormat: "Azure Functions instances cannot be directly addressed as they have a highly volatile lifetime. Use 'RouteToThisEndpoint' instead.",
9494
category: DiagnosticCategory,
9595
defaultSeverity: DiagnosticSeverity.Error,
9696
isEnabledByDefault: true
@@ -99,7 +99,7 @@ public static class AzureFunctionsDiagnostics
9999
internal static readonly DiagnosticDescriptor RouteToThisInstanceNotAllowed = new DiagnosticDescriptor(
100100
id: RouteToThisInstanceNotAllowedId,
101101
title: "RouteToThisInstance is not supported in Azure Functions",
102-
messageFormat: "Azure Functions endpoints do not control the message receiver and cannot configure specific instance routing.",
102+
messageFormat: "Azure Functions instances cannot be directly addressed as they have a highly volatile lifetime. Use 'RouteToThisEndpoint' instead.",
103103
category: DiagnosticCategory,
104104
defaultSeverity: DiagnosticSeverity.Error,
105105
isEnabledByDefault: true
@@ -126,7 +126,7 @@ public static class AzureFunctionsDiagnostics
126126
internal static readonly DiagnosticDescriptor PrefetchCountNotAllowed = new DiagnosticDescriptor(
127127
id: PrefetchCountNotAllowedId,
128128
title: "PrefetchCount is not supported in Azure Functions",
129-
messageFormat: "Azure Functions endpoints do not control the message receiver and cannot decide the prefetch count.",
129+
messageFormat: "Message prefetching is controlled by the Azure Service Bus trigger and cannot be configured via the NServiceBus transport configuration API when using Azure Functions.",
130130
category: DiagnosticCategory,
131131
defaultSeverity: DiagnosticSeverity.Error,
132132
isEnabledByDefault: true
@@ -135,7 +135,7 @@ public static class AzureFunctionsDiagnostics
135135
internal static readonly DiagnosticDescriptor PrefetchMultiplierNotAllowed = new DiagnosticDescriptor(
136136
id: PrefetchMultiplierNotAllowedId,
137137
title: "PrefetchMultiplier is not supported in Azure Functions",
138-
messageFormat: "Azure Functions endpoints do not control the message receiver and cannot decide the prefetch multiplier.",
138+
messageFormat: "Message prefetching is controlled by the Azure Service Bus trigger and cannot be configured via the NServiceBus transport configuration API when using Azure Functions",
139139
category: DiagnosticCategory,
140140
defaultSeverity: DiagnosticSeverity.Error,
141141
isEnabledByDefault: true

0 commit comments

Comments
 (0)