26 lines
661 B
C#
26 lines
661 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using xMessageService.Models;
|
|
|
|
namespace xMessageService.Interfaces {
|
|
public partial interface IXMessageProvider {
|
|
bool IsReady (
|
|
bool? checkMailService = false,
|
|
bool? checkSmsService = false
|
|
);
|
|
|
|
Task SendMailAsync (
|
|
XMessage message,
|
|
string provider = null,
|
|
bool throwException = true,
|
|
Exception exception = null
|
|
);
|
|
|
|
Task SendSmsAsync (
|
|
XMessage message,
|
|
string provider = null,
|
|
bool throwException = true,
|
|
Exception exception = null
|
|
);
|
|
}
|
|
} |