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