예제 #1
0
 public ExitLogger(object instanceOrType, FlowExpression flow)
 {
     this.instanceOrType = instanceOrType;
     this.flow           = flow;
     ((IExpressionResult)this.flow).Result.Position = FlowMemberPosition.ExitMethod;
 }
예제 #2
0
 public static IDisposable LogBlock(this object obj, FlowExpression flow)
 {
     Logging.Log.Write(obj, flow);
     return(new ExitLogger(obj, flow));
 }
예제 #3
0
 public static IDisposable Log(this Type type, FlowExpression flow)
 {
     Logging.Log.Write(type, flow);
     return(new ExitLogger(type, flow));
 }
예제 #4
0
 public static void Log(this object obj, FlowExpression flow)
 {
     Logging.Log.Write(obj, flow);
 }