Beispiel #1
0
        public SubscriptionConnectionPerformanceOperation ToPerformanceOperation(string name)
        {
            var operation = new SubscriptionConnectionPerformanceOperation(Duration)
            {
                Name = name
            };

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

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