Table of Contents

Interface ISmsSender

Namespace
FishMMO.ControlPanel.Services
Assembly
FishMMO-ControlPanel.dll

Delivers one text message. The SMS counterpart of ISmtpSender.

public interface ISmsSender

Remarks

Separate from the queue for the same reason the SMTP sender is: SmsQueueDrainService decides what to send and what to record, and this decides only how a message leaves.

Properties

ConfigurationSummary

One line naming where messages go, or why they go nowhere. Safe to log.

string ConfigurationSummary { get; }

Property Value

string

IsConfigured

Whether this deployment can deliver anything.

bool IsConfigured { get; }

Property Value

bool

Methods

SendAsync(string, string, CancellationToken)

Sends one message, returning whether it was accepted.

Task<bool> SendAsync(string toPhone, string body, CancellationToken cancellationToken = default)

Parameters

toPhone string
body string
cancellationToken CancellationToken

Returns

Task<bool>