EmailServiceBeforeSendAsync Method

发送前执行的操作。

Definition

Namespace: QuickAdmin.Service.Infrastructure
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
protected virtual Task<IServiceResult> BeforeSendAsync(
	int purpose,
	string email,
	CancellationToken cancellationToken
)

Parameters

purpose  int
验证代码目的。
email  string
邮箱地址。
cancellationToken  CancellationToken
用于取消操作的令牌。

Return Value

TaskIServiceResult
服务调用结果。

Remarks

可通过此方法进行发送间隔控制。基类此方法内已实现:一分钟内只能发送一条邮件。

See Also