You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.HashSet<string>> SubscribedEventToTopicsMap { get; init; }
190
+
public bool ThrowIfUnmappedEventTypes { get; set; }
188
191
}
189
192
public sealed class TopologyOptionsDisableValidationValidator : Microsoft.Extensions.Options.IValidateOptions<NServiceBus.Transport.AzureServiceBus.TopologyOptions>
Copy file name to clipboardExpand all lines: src/Transport/EventRouting/EntityValidator.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ static partial class EntityValidator
19
19
:ValidationResult.Success;
20
20
}
21
21
22
+
// Enforces naming according to the specification https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftservicebus
@@ -34,6 +35,7 @@ static partial class EntityValidator
34
35
:ValidationResult.Success;
35
36
}
36
37
38
+
// Enforces naming according to the specification https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftservicebus
37
39
// Note the queue pattern is the same as the topic pattern. Deliberately kept separate for future extensibility.
@@ -50,6 +52,7 @@ static partial class EntityValidator
50
52
:ValidationResult.Success;
51
53
}
52
54
55
+
// Enforces naming according to the specification https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftservicebus
@@ -66,6 +69,7 @@ static partial class EntityValidator
66
69
:ValidationResult.Success;
67
70
}
68
71
72
+
//enforces naming according to the specification https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftservicebus
69
73
// Note the subscription pattern is the same as the rule pattern. Deliberately kept separate for future extensibility.
@@ -45,4 +46,9 @@ public Dictionary<string, string> SubscribedEventToRuleNameMap
45
46
get;
46
47
init=>field=value??[];
47
48
}=[];
49
+
50
+
// NOTE: explicitly set to true always and ignored from JSON, since MigrationTopology is already obsolete and we don't want to have a fallback naming strategy
thrownewException($"Unmapped event type '{eventTypeFullName}'. All events must be mapped in `{nameof(TopologyOptions.PublishedEventToTopicsMap)}` when `{nameof(TopologyOptions.ThrowIfUnmappedEventTypes)}` is set");
0 commit comments