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
phonestringThe recipient phone number.
messagestringThe content of the SMS message.
cancellationTokenCancellationTokenA token that may be used to cancel the operation.