Ejemplo n.º 1
0
 public static T Indent <T>(this IPackageLog log, Func <T> action)
 {
     log.Indent();
     try
     {
         return(action());
     }
     finally
     {
         log.Unindent();
     }
 }
Ejemplo n.º 2
0
 public static void Indent(this IPackageLog log, Action action)
 {
     log.Indent();
     try
     {
         action();
     }
     finally
     {
         log.Unindent();
     }
 }