diff --git a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/FeatureFlag.cs b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/FeatureFlag.cs index 68be92e3a..c66535d41 100644 --- a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/FeatureFlag.cs +++ b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/FeatureFlag.cs @@ -6,9 +6,6 @@ namespace NServiceBus.Transport.RabbitMQ.ManagementApi; using System.Text.Json; using System.Text.Json.Serialization; -// This is to prevent Fody throwing an error on classes with `required` properties (since the compiler marks the default constructor with an `[Obsolete]` attribute) -// https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members#metadata-representation -[method: DoNotWarnAboutObsoleteUsage] class FeatureFlag() { [JsonRequired] diff --git a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Overview.cs b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Overview.cs index 6192883bb..19c04cc5e 100644 --- a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Overview.cs +++ b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Overview.cs @@ -7,9 +7,6 @@ namespace NServiceBus.Transport.RabbitMQ.ManagementApi; using System.Text.Json; using System.Text.Json.Serialization; -// This is to prevent Fody throwing an error on classes with `required` properties (since the compiler marks the default constructor with an `[Obsolete]` attribute) -// https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members#metadata-representation -[method: DoNotWarnAboutObsoleteUsage] class Overview() { [JsonPropertyName("product_name")] diff --git a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Policy.cs b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Policy.cs index ed1d1cdc4..65f0c8e34 100644 --- a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Policy.cs +++ b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Policy.cs @@ -6,9 +6,6 @@ namespace NServiceBus.Transport.RabbitMQ.ManagementApi; using System.Text.Json; using System.Text.Json.Serialization; -// This is to prevent Fody throwing an error on classes with `required` properties (since the compiler marks the default constructor with an `[Obsolete]` attribute) -// https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members#metadata-representation -[method: DoNotWarnAboutObsoleteUsage] class Policy() { [JsonPropertyName("vhost")] diff --git a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Queue.cs b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Queue.cs index cc22129b5..992ae3b25 100644 --- a/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Queue.cs +++ b/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Queue.cs @@ -6,9 +6,6 @@ namespace NServiceBus.Transport.RabbitMQ.ManagementApi; using System.Text.Json; using System.Text.Json.Serialization; -// This is to prevent Fody throwing an error on classes with `required` properties (since the compiler marks the default constructor with an `[Obsolete]` attribute) -// https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members#metadata-representation -[method: DoNotWarnAboutObsoleteUsage] class Queue() { [JsonRequired] diff --git a/src/NServiceBus.Transport.RabbitMQ/NServiceBus.Transport.RabbitMQ.csproj b/src/NServiceBus.Transport.RabbitMQ/NServiceBus.Transport.RabbitMQ.csproj index 1de03b80a..3dd6a378d 100644 --- a/src/NServiceBus.Transport.RabbitMQ/NServiceBus.Transport.RabbitMQ.csproj +++ b/src/NServiceBus.Transport.RabbitMQ/NServiceBus.Transport.RabbitMQ.csproj @@ -16,7 +16,7 @@ - +