AlertProcessingService

StockSharp.Alerts

Serviço de processamento de alerta.

Herda de: BaseLogReceiver

Implementa: IAlertProcessingService, IAsyncPersistable, ILogSource, IDisposable

Construtores

AlertProcessingService
public AlertProcessingService(int maxQueue)
alertProcessingService = AlertProcessingService(maxQueue)

Inicializa uma nova instância do AlertProcessingService.

maxQueue
Fila máxima para o processo.

Propriedades

DroppedMessages
public long DroppedMessages { get; }
value = alertProcessingService.DroppedMessages

Number of messages dropped because the processing queue was full.

Schemas
public IEnumerable<AlertSchema> Schemas { get; }
value = alertProcessingService.Schemas

Todos esquemas.

Métodos

DisposeManaged
protected override void DisposeManaged()
alertProcessingService.DisposeManaged()

Libertar recursos.

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = alertProcessingService.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

Retorna: A task that represents the asynchronous load operation.

Register
public void Register(AlertSchema schema)
alertProcessingService.Register(schema)

Esquema de registo.

schema
Esquema.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = alertProcessingService.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

Retorna: A task that represents the asynchronous save operation.

Eventos

Registered
public event Action<AlertSchema> Registered
alertProcessingService.Registered += handler

Esquema de registo.

UnRegistered
public event Action<AlertSchema> UnRegistered
alertProcessingService.UnRegistered += handler

Esquema de evento não registrado.