From 4142d2d948634b611089786358603273f5ec1bb1 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 20 Dec 2024 09:27:08 +0100 Subject: [PATCH] =?UTF-8?q?refactor(TokenDescriptorProvider):=20verwendete?= =?UTF-8?q?=20Prim=C3=A4rstruktur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Core.Security/TokenDescriptorProvider.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/DigitalData.Core.Security/TokenDescriptorProvider.cs b/DigitalData.Core.Security/TokenDescriptorProvider.cs index 3b6c5f4..a29a024 100644 --- a/DigitalData.Core.Security/TokenDescriptorProvider.cs +++ b/DigitalData.Core.Security/TokenDescriptorProvider.cs @@ -4,16 +4,9 @@ using Microsoft.IdentityModel.Tokens; namespace DigitalData.Core.Security { - public class TokenDescriptorProvider + public class TokenDescriptorProvider(IMapper mapper) { - private readonly IMapper _mapper; - - public TokenDescriptorProvider(IMapper mapper) - { - _mapper = mapper; - } - public SecurityTokenDescriptor Create(TokenDescription description) - => _mapper.Map(description, new SecurityTokenDescriptor()); + => mapper.Map(description, new SecurityTokenDescriptor()); } } \ No newline at end of file