Table of Contents

Class AlertsExtensions

Namespace
StockSharp.Alerts
Assembly
StockSharp.Alerts.Interfaces.dll

Alert extensions.

public static class AlertsExtensions
Inheritance
AlertsExtensions
Inherited Members

Methods

RegisterChannels(IEnumerable<ITelegramChannel>)

Register collection of Telegram channels for subsequent access through configuration container.

public static void RegisterChannels(IEnumerable<ITelegramChannel> channels)

Parameters

channels IEnumerable<ITelegramChannel>

Collection of channels to register.

TryFindChannel(long)

Try to find the channel by the specified identifier.

public static ITelegramChannel TryFindChannel(this long channelId)

Parameters

channelId long

Channel id.

Returns

ITelegramChannel

Found channel or null if channel not found.

TryGetChannels()

Try to get registered Telegram channels.

public static IEnumerable<ITelegramChannel> TryGetChannels()

Returns

IEnumerable<ITelegramChannel>

Collection of channels or null if service is not registered.