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

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

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