ILatencyManagerState
StockSharp.Algo.Latency
Zustandsspeicherung für LatencyManager.
Eigenschaften
LatencyCancellation
public TimeSpan LatencyCancellation { get; }
value = iLatencyManagerState.LatencyCancellation
Gesamtauslöschungslatenz.
LatencyRegistration
public TimeSpan LatencyRegistration { get; }
value = iLatencyManagerState.LatencyRegistration
Gesamtregistrierungslatenz.
Methoden
AddCancellation
public void AddCancellation(long transactionId, DateTime localTime)
iLatencyManagerState.AddCancellation(transactionId, localTime)
Angeklagte Stornierung hinzufügen.
- transactionId
- Transaktionskennung.
- localTime
- Ortszeit.
AddLatencyCancellation
public void AddLatencyCancellation(TimeSpan latency)
iLatencyManagerState.AddLatencyCancellation(latency)
Addieren Sie zur Stornierungslatenz.
- latency
- Latenz zum Hinzufügen.
AddLatencyRegistration
public void AddLatencyRegistration(TimeSpan latency)
iLatencyManagerState.AddLatencyRegistration(latency)
Fügen Sie die Latenz der Registrierung hinzu.
- latency
- Latenz zum Hinzufügen.
AddRegistration
public void AddRegistration(long transactionId, DateTime localTime)
iLatencyManagerState.AddRegistration(transactionId, localTime)
Angemeldete Registrierung hinzufügen.
- transactionId
- Transaktionskennung.
- localTime
- Ortszeit.
TryGetAndRemoveCancellation
public bool TryGetAndRemoveCancellation(long transactionId, DateTime localTime)
result = iLatencyManagerState.TryGetAndRemoveCancellation(transactionId, localTime)
Versuchen Sie, erhalten und entfernen ausstehende Stornierung.
- transactionId
- Transaktionskennung.
- localTime
- Ortszeit, falls gefunden.
Rückgabe: wenn gefunden und entfernt.
TryGetAndRemoveRegistration
public bool TryGetAndRemoveRegistration(long transactionId, DateTime localTime)
result = iLatencyManagerState.TryGetAndRemoveRegistration(transactionId, localTime)
Versuchen Sie, die anhängige Registrierung zu erhalten und zu entfernen.
- transactionId
- Transaktionskennung.
- localTime
- Ortszeit, falls gefunden.
Rückgabe: wenn gefunden und entfernt.