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
* Fix obsoletion warning for SendTransportEncodingHeader to indicate we will no longer be sending this header in the next version to align it with the transport extension
* Remove DoNotSendTransportEncodingHeader APIs since they have never been shipped (only as alpha to MT connector)
---------
Co-authored-by: Daniel Marbach <[email protected]>
Copy file name to clipboardExpand all lines: src/Tests/ApprovalFiles/APIApprovals.Approve.approved.txt
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,19 +16,16 @@ namespace NServiceBus
16
16
"ersion 6.0.0.", true)]
17
17
public AzureServiceBusTransport(string fullyQualifiedNamespace, Azure.Core.TokenCredential tokenCredential) { }
18
18
public AzureServiceBusTransport(string fullyQualifiedNamespace, Azure.Core.TokenCredential tokenCredential, NServiceBus.TopicTopology topology) { }
19
-
[System.Obsolete(@"The transport by default no longer sends the transport encoding header for wire compatibility with NServiceBus.AzureServiceBus, requiring an opt-in for the header to be sent. Use `SendTransportEncodingHeader` instead. The member currently throws a NotImplementedException. Will be removed in version 6.0.0.", true)]
20
-
public bool DoNotSendTransportEncodingHeader { get; set; }
21
19
public bool EnablePartitioning { get; set; }
22
20
public int EntityMaximumSize { get; set; }
23
21
public System.TimeSpan? MaxAutoLockRenewalDuration { get; set; }
24
22
public System.Action<NServiceBus.Transport.IOutgoingTransportOperation, Azure.Messaging.ServiceBus.ServiceBusMessage>? OutgoingNativeMessageCustomization { get; set; }
25
23
public int? PrefetchCount { get; set; }
26
24
public int PrefetchMultiplier { get; set; }
27
25
public Azure.Messaging.ServiceBus.ServiceBusRetryOptions? RetryPolicyOptions { get; set; }
28
-
[System.Obsolete("Next versions of the transport will by default no longer send the transport encod" +
29
-
"ing header for wire compatibility, requiring an opt-in for the header to be sent" +
30
-
". Will be treated as an error from version 6.0.0. Will be removed in version 7.0" +
31
-
".0.", false)]
26
+
[System.Obsolete("Next versions of the transport will no longer support sending the transport encod" +
27
+
"ing header. Will be treated as an error from version 6.0.0. Will be removed in v" +
28
+
"ersion 7.0.0.", false)]
32
29
public bool SendTransportEncodingHeader { get; set; }
33
30
[System.Obsolete("Setting the subscription name is accessible via the topology. Use `OverrideSubscr" +
34
31
"iptionNameFor` instead. The member currently throws a NotImplementedException. W" +
@@ -61,8 +58,6 @@ namespace NServiceBus
61
58
"viceBusTransport or via UseTransport<AzureServiceBusTransport> method. Will be r" +
[System.Obsolete(@"The transport by default no longer sends the transport encoding header for wire compatibility with NServiceBus.AzureServiceBus, requiring an opt-in for the header to be sent. Use `SendTransportEncodingHeader(this TransportExtensions<AzureServiceBusTransport> transportExtensions)` instead. Will be treated as an error from version 6.0.0. The member currently throws a NotImplementedException. Will be removed in version 7.0.0.", false)]
65
-
public static NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> DoNotSendTransportEncodingHeader(this NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> transportExtensions) { }
66
61
public static NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> EnablePartitioning(this NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> transportExtensions) { }
67
62
public static NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> EntityMaximumSize(this NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> transportExtensions, int maximumSizeInGB) { }
68
63
public static NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> MaxAutoLockRenewalDuration(this NServiceBus.TransportExtensions<NServiceBus.AzureServiceBusTransport> transportExtensions, System.TimeSpan maximumAutoLockRenewalDuration) { }
Copy file name to clipboardExpand all lines: src/Transport/AzureServiceBusTransport.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -310,7 +310,7 @@ public IWebProxy? WebProxy
310
310
/// <summary>
311
311
/// When set will add `NServiceBus.Transport.Encoding` header for wire compatibility with NServiceBus.AzureServiceBus. The default value is <c>false</c>.
312
312
/// </summary>
313
-
[ObsoleteEx(Message="Next versions of the transport will by default no longer send the transport encoding header for wire compatibility, requiring an opt-in for the header to be sent.",
313
+
[ObsoleteEx(Message="Next versions of the transport will no longer support sending the transport encoding header.",
Copy file name to clipboardExpand all lines: src/Transport/obsoletes-v5.cs
-23Lines changed: 0 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -49,18 +49,6 @@ public Func<Type, string> SubscriptionRuleNamingConvention
49
49
get=>thrownewNotImplementedException();
50
50
set=>thrownewNotImplementedException();
51
51
}
52
-
53
-
[ObsoleteEx(
54
-
Message=
55
-
"The transport by default no longer sends the transport encoding header for wire compatibility with NServiceBus.AzureServiceBus, requiring an opt-in for the header to be sent.",
"The transport by default no longer sends the transport encoding header for wire compatibility with NServiceBus.AzureServiceBus, requiring an opt-in for the header to be sent.",
0 commit comments