Exemplo n.º 1
0
        public SubscriptionBatchPerformanceOperation ToPerformanceOperation(string name)
        {
            var operation = new SubscriptionBatchPerformanceOperation(Duration)
            {
                Name = name
            };

            if (Scopes != null)
            {
                operation.Operations = Scopes
                                       .Select(x => x.Value.ToPerformanceOperation(x.Key))
                                       .ToArray();
            }

            return(operation);
        }
Exemplo n.º 2
0
 public SubscriptionBatchPerformanceOperation(TimeSpan duration)
 {
     DurationInMs = Math.Round(duration.TotalMilliseconds, 2);
     Operations   = new SubscriptionBatchPerformanceOperation[0];
 }