Ejemplo n.º 1
0
 private static void PerformanceStatisticsManager_OnUpdates(PerformanceStatisticsManager.PerformanceStatisticsManagerUpdate updates)
 {
     if (!SubscriptionsManager.TryGetSubscription(PerformanceStatisticsSubscription.SubscriptionName, out var subscription))
     {
         return;
     }
     InfoConnectionManager.SendSubscriptionUpdate(subscription, PerformanceStatisticsUpdate.Generate(updates, PerformanceStatisticsSubscription.SubscriptionName));
 }
Ejemplo n.º 2
0
 public static PerformanceStatisticsUpdate Generate(PerformanceStatisticsManager.PerformanceStatisticsManagerUpdate update, string channelName)
 {
     return(new PerformanceStatisticsUpdate
     {
         QuantaPerSecond = update.QuantaPerSecond,
         Throttling = update.Trottling,
         BatchSavedInfos = update.BatchInfos,
         ChannelName = channelName,
         UpdateDate = DateTime.UtcNow
     });
 }