Interface ISmsService
Represents an SMS service for sending text messages.
public interface ISmsService
- Extension Methods
Methods
SendAsync(string, string, CancellationToken)
Sends an SMS message asynchronously.
Task<string> SendAsync(string phone, string message, CancellationToken cancellationToken = default)
Parameters
phone
stringThe recipient phone number.
message
stringThe content of the SMS message.
cancellationToken
CancellationTokenA token that may be used to cancel the operation.