From 423b2931974ad5837ea6269ee1233d9592fdc655 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 27 Nov 2024 17:46:32 +0100 Subject: [PATCH] =?UTF-8?q?feat(MessagingService):=20M=C3=B6glichkeit=20hi?= =?UTF-8?q?nzugef=C3=BCgt,=20den=20Anbieter=20des=20Messaging-Servers=20zu?= =?UTF-8?q?=20benachrichtigen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EnvelopeGenerator.Application/Contracts/IMessagingService.cs | 2 ++ EnvelopeGenerator.Application/Services/GTXMessagingService.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/EnvelopeGenerator.Application/Contracts/IMessagingService.cs b/EnvelopeGenerator.Application/Contracts/IMessagingService.cs index 42ef85fd..84c26e3d 100644 --- a/EnvelopeGenerator.Application/Contracts/IMessagingService.cs +++ b/EnvelopeGenerator.Application/Contracts/IMessagingService.cs @@ -5,5 +5,7 @@ namespace EnvelopeGenerator.Application.Contracts public interface IMessagingService { public Task SendSmsAsync(string recipient, string message); + + string ServiceProvider { get; } } } \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs index 21cbb003..68fc78bf 100644 --- a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs +++ b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs @@ -22,6 +22,7 @@ namespace EnvelopeGenerator.Application.Services _smsClient = smsClient; _smsParams = smsParamsOptions.Value; _mapper = mapper; + ServiceProvider = GetType().Name.Replace("Service", string.Empty); } public async Task SendSmsAsync(string recipient, string message) @@ -34,5 +35,7 @@ namespace EnvelopeGenerator.Application.Services .ThenAsync(res => res.Json()) .ThenAsync(_mapper.Map); } + + public string ServiceProvider { get; } } } \ No newline at end of file