IAlertNotificationService

StockSharp.Alerts

定义提醒通知服务。

实现: ILogSource, IDisposable

方法

NotifyAsync
public ValueTask NotifyAsync(AlertNotifications type, long? externalId, LogLevels logLevel, string caption, string message, DateTime time, CancellationToken cancellationToken)
result = iAlertNotificationService.NotifyAsync(type, externalId, logLevel, caption, message, time, cancellationToken)

在输出时添加提醒 。

type
警报类型。
externalId
外出身份证明.
logLevel
LogLevels
caption
信号头.
message
警报短信
time
创作时间。
cancellationToken
CancellationToken.

返回值: ValueTask.