Exemplo n.º 1
0
 private void PerformanceStatisticsManager_OnUpdates(PerformanceStatistics statistics)
 {
     if (!SubscriptionsManager.TryGetSubscription(PerformanceStatisticsSubscription.SubscriptionName, out var subscription))
     {
         return;
     }
     InfoConnectionManager.SendSubscriptionUpdate(subscription, PerformanceStatisticsUpdate.Generate((AlphaPerformanceStatistics)statistics, PerformanceStatisticsSubscription.SubscriptionName));
 }
 public static AuditorPerfStatistics ToModel(this PerformanceStatistics statistics)
 {
     return(new AuditorPerfStatistics
     {
         QuantaPerSecond = statistics.QuantaPerSecond,
         QuantaQueueLength = statistics.QuantaQueueLength,
         BatchInfos = statistics.BatchInfos.Select(b => b.ToBatchSavedInfoModel()).ToList(),
         UpdateDate = statistics.UpdateDate.Ticks
     });
 }
 private void PerformanceStatisticsManager_OnUpdates(PerformanceStatistics statistics)
 {
     OutgoingMessageStorage.EnqueueMessage(statistics.ToModel());
 }