From 2557525f06a16d5da4c438a441c3f9542d91a2b6 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 9 Jan 2025 11:08:06 +0100 Subject: [PATCH] refactor(PrivateKeyTokenDescriptor): superwarning zur Deaktivierung der Warnung vor Null --- .../Security/PrivateKeyTokenDescriptor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Abstractions/Security/PrivateKeyTokenDescriptor.cs b/DigitalData.Core.Abstractions/Security/PrivateKeyTokenDescriptor.cs index 3596f76..fd9638a 100644 --- a/DigitalData.Core.Abstractions/Security/PrivateKeyTokenDescriptor.cs +++ b/DigitalData.Core.Abstractions/Security/PrivateKeyTokenDescriptor.cs @@ -12,7 +12,8 @@ namespace DigitalData.Core.Abstractions.Security /// /// Gets or sets the value of the 'audience' claim. /// - public new string Audience { get; set; } +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + public string Audience { get; set; } /// /// Defines the compression algorithm that will be used to compress the JWT token payload. @@ -32,7 +33,7 @@ namespace DigitalData.Core.Abstractions.Security /// /// Gets or sets the issuer of this . /// - public new string Issuer { get; set; } + public string Issuer { get; set; } /// /// Gets or sets the time the security token was issued. This value should be in UTC. @@ -76,6 +77,7 @@ namespace DigitalData.Core.Abstractions.Security /// Gets or sets the used to create a security token. /// public SigningCredentials SigningCredentials { get; set; } +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. /// /// Specifies the signature algorithm to be applied to the .