Add phoneNumber to ISmsSender.SendAsync

pull/7950/head
Halil ibrahim Kalkan 6 years ago
parent 6083130807
commit aace4f6931

@ -4,6 +4,6 @@ namespace Volo.Abp.Sms
{
public interface ISmsSender
{
Task SendAsync(string text);
Task SendAsync(string phoneNumber, string text);
}
}

@ -14,10 +14,12 @@ namespace Volo.Abp.Sms
Logger = NullLogger<NullSmsSender>.Instance;
}
public Task SendAsync(string text)
public Task SendAsync(string phoneNumber, string text)
{
Logger.LogWarning($"SMS Sending was not implemented! Using {nameof(NullSmsSender)}:");
Logger.LogWarning("SMS Text: " + text);
Logger.LogWarning("Phone Number : " + phoneNumber);
Logger.LogWarning("SMS Text : " + text);
return Task.CompletedTask;
}
}

Loading…
Cancel
Save