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 static void EnableFeature<TFeature>(this NServiceBus.Settings.SettingsHolder settings)
1428
1428
where TFeature : NServiceBus.Features.Feature, new () { }
1429
-
[System.Obsolete("It is no longer possible to enable features by default on the settings. Features " +
1430
-
"can enable other features by calling EnableByDefault<T> in the constructor. Will" +
1431
-
" be removed in version 11.0.0.", true)]
1429
+
[System.Obsolete(@"It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings. Will be removed in version 11.0.0.", true)]
1432
1430
public static NServiceBus.Settings.SettingsHolder EnableFeatureByDefault(this NServiceBus.Settings.SettingsHolder settings, System.Type featureType) { }
1433
-
[System.Obsolete("It is no longer possible to enable features by default on the settings. Features " +
1434
-
"can enable other features by calling EnableByDefault<T> in the constructor. Will" +
1435
-
" be removed in version 11.0.0.", true)]
1431
+
[System.Obsolete(@"It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings. Will be removed in version 11.0.0.", true)]
1436
1432
public static NServiceBus.Settings.SettingsHolder EnableFeatureByDefault<T>(this NServiceBus.Settings.SettingsHolder settings)
1437
1433
where T : NServiceBus.Features.Feature { }
1438
1434
[System.Obsolete("Use \'IsFeatureActive<T>(this IReadOnlySettings settings)\' instead. Will be remove" +
Copy file name to clipboardExpand all lines: src/NServiceBus.Core/obsoletes-v10.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -460,17 +460,17 @@ public class DataBus;
460
460
publicstaticpartialclassSettingsExtensions
461
461
{
462
462
[ObsoleteMetadata(
463
-
Message="It is no longer possible to enable features by default on the settings. Features can enable other features by calling EnableByDefault<T> in the constructor",
463
+
Message="It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings",
464
464
RemoveInVersion="11",
465
465
TreatAsErrorFromVersion="10")]
466
-
[Obsolete("It is no longer possible to enable features by default on the settings. Features can enable other features by calling EnableByDefault<T> in the constructor. Will be removed in version 11.0.0.",true)]
466
+
[Obsolete("It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings. Will be removed in version 11.0.0.",true)]
Message="It is no longer possible to enable features by default on the settings. Features can enable other features by calling EnableByDefault<T> in the constructor",
470
+
Message="It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings",
471
471
RemoveInVersion="11",
472
472
TreatAsErrorFromVersion="10")]
473
-
[Obsolete("It is no longer possible to enable features by default on the settings. Features can enable other features by calling EnableByDefault<T> in the constructor. Will be removed in version 11.0.0.",true)]
473
+
[Obsolete("It is no longer possible to enable features by default on the settings. Features can enable other features by calling Enable<T> in the constructor. Enabling a feature outside the context of another feature can be done by calling EnableFeature<T> on the endpoint configuration or settings. Will be removed in version 11.0.0.",true)]
0 commit comments