feat(MessagingService): Möglichkeit hinzugefügt, den Anbieter des Messaging-Servers zu benachrichtigen.
This commit is contained in:
parent
27618a343e
commit
423b293197
@ -5,5 +5,7 @@ namespace EnvelopeGenerator.Application.Contracts
|
||||
public interface IMessagingService
|
||||
{
|
||||
public Task<SmsResponse> SendSmsAsync(string recipient, string message);
|
||||
|
||||
string ServiceProvider { get; }
|
||||
}
|
||||
}
|
||||
@ -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<SmsResponse> SendSmsAsync(string recipient, string message)
|
||||
@ -34,5 +35,7 @@ namespace EnvelopeGenerator.Application.Services
|
||||
.ThenAsync(res => res.Json<GtxMessagingResponse>())
|
||||
.ThenAsync(_mapper.Map<SmsResponse>);
|
||||
}
|
||||
|
||||
public string ServiceProvider { get; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user