Skip to content

Commit

Permalink
Fix ReplacementTypeOrMember for DateTimeExtensions (#6976)
Browse files Browse the repository at this point in the history
* Fix ReplacementTypeOrMember for DateTimeExtensions

The obsolete message on the class type was referencing to DateTimeOffsetHelper that is an internal class. Instead, it should be DateTimeOffsetExtensions, like correctly is on all class members

* Approved API
  • Loading branch information
mauroservienti committed Mar 18, 2024
1 parent d7947bf commit e2a9813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -220,8 +220,8 @@ namespace NServiceBus
public void SetValue(object valueToSet) { }
}
[System.Obsolete("Public APIs no longer use DateTime but DateTimeOffset. See the upgrade guide for " +
"more details. Use `NServiceBus.DateTimeOffsetExtensions` instead. Will be remove" +
"d in version 9.0.0.", true)]
"more details. Use `NServiceBus.DateTimeOffsetHelper` instead. Will be removed in" +
" version 9.0.0.", true)]
public static class DateTimeExtensions
{
[System.Obsolete("Public APIs no longer use DateTime but DateTimeOffset. See the upgrade guide for " +
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Core/obsoletes-v8.cs
Expand Up @@ -683,7 +683,7 @@ namespace NServiceBus

[ObsoleteEx(
Message = "Public APIs no longer use DateTime but DateTimeOffset. See the upgrade guide for more details.",
ReplacementTypeOrMember = "NServiceBus.DateTimeOffsetExtensions",
ReplacementTypeOrMember = "NServiceBus.DateTimeOffsetHelper",
TreatAsErrorFromVersion = "8",
RemoveInVersion = "9")]
public static class DateTimeExtensions
Expand Down

0 comments on commit e2a9813

Please sign in to comment.