AlertNotificationRouter

StockSharp.Alerts

Sends an alert to whichever channel it asks for, off the thread that raised it.

Наследует: BaseLogReceiver

Реализует: IAlertNotificationService, ILogSource, IDisposable

Конструкторы

AlertNotificationRouter
public AlertNotificationRouter(int maxQueue, IAlertNotificationService externalProvider, IAlertSoundService sound, IDesktopPopupService popup, ILogReceiver log)
alertNotificationRouter = AlertNotificationRouter(maxQueue, externalProvider, sound, popup, log)

Initializes a new instance of the AlertNotificationRouter.

maxQueue
How many pending alerts are kept before new ones wait.
externalProvider
Carries the alerts this process cannot deliver itself, such as Telegram.
sound
Plays the alert sound.
popup
Shows the desktop popup.
log
Receives the alerts asking to be logged.

Методы

DisposeManaged
protected override void DisposeManaged()
alertNotificationRouter.DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

ToIconKey
private static string ToIconKey(LogLevels logLevel)
result = AlertNotificationRouter.ToIconKey(logLevel)

The icon a popup shows for an alert of this severity. A popup that always looks the same says nothing about which alert fired.

logLevel
Alert severity.

Возвращает: Icon key, or an empty string when the severity has no icon of its own.