Exemple #1
0
 public static void MapFrom(this IExecutionTrace target, IExecutionTrace source)
 {
     if (source != null)
     {
         if (target != null)
         {
             target.Module        = source.Module;
             target.ClassName     = source.ClassName;
             target.MethodName    = source.MethodName;
             target.Tag           = source.Tag;
             target.MinDuration   = source.MinDuration;
             target.MaxDuration   = source.MaxDuration;
             target.TotalDuration = source.TotalDuration;
             target.Counter       = source.Counter;
             target.LastCall      = source.LastCall;
         }
     }
 }
Exemple #2
0
 public static void MapTo(this IExecutionTrace source, IExecutionTrace target)
 {
     target.MapFrom(source);
 }