IDesktopPopupService
StockSharp.Alerts
桌面弹出通知服务 。
实现: ILogSource, IDisposable
方法
NotifyAsync
public ValueTask<bool> NotifyAsync(DateTime time, string caption, string message, string iconKey, CancellationToken cancellationToken)
result = iDesktopPopupService.NotifyAsync(time, caption, message, iconKey, cancellationToken)
显示桌面弹出 。
- time
- 时间到了
- caption
- 信号头.
- message
- 警报短信
- iconKey
- 图标以通知显示 。
- cancellationToken
- CancellationToken.
返回值: ValueTaskTask 结果是真实的,如果用户已经点击了通知。