ISmsService

Ecng.Net.Sms

Represents an SMS service for sending text messages.

Methoden

SendAsync
public Task<string> SendAsync(string phone, string message, CancellationToken cancellationToken)
result = iSmsService.SendAsync(phone, message, cancellationToken)

Sends an SMS message asynchronously.

phone
The recipient phone number.
message
The content of the SMS message.
cancellationToken
A token that may be used to cancel the operation.

Rückgabe: A task that represents the asynchronous operation. The task result contains the response or status returned after sending the message.