|
override void | OnEntry (MethodExecutionArgs args) |
| Method executed before the body of methods to which this aspect is applied. More...
|
|
override void | OnExit (MethodExecutionArgs args) |
| Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally block). More...
|
|
Definition at line 9 of file Log.cs.
override void SharedObjects.Log.OnEntry |
( |
MethodExecutionArgs |
args | ) |
|
Method executed before the body of methods to which this aspect is applied.
- Parameters
-
args | Event arguments specifying which method is being executed, which are its arguments, and how should the execution continue after the execution of M:PostSharp.Aspects.IOnMethodBoundaryAspect.OnEntry(PostSharp.Aspects.MethodExecutionArgs). |
Definition at line 17 of file Log.cs.
19 StackFrame frame =
new StackFrame(1,
true);
20 Singleton<Logger>.Instance.LogInfo(String.Format(
"Starting {0}", args.Method), frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber());
override void SharedObjects.Log.OnExit |
( |
MethodExecutionArgs |
args | ) |
|
Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally
block).
- Parameters
-
args | Event arguments specifying which method is being executed and which are its arguments. |
Definition at line 31 of file Log.cs.
34 StackFrame frame =
new StackFrame(1,
true);
35 Singleton<Logger>.Instance.LogInfo(String.Format(
"Exit {0}", args.Method), frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber());
The documentation for this class was generated from the following file:
- C:/Entwicklung/Simple3DScan/Simple3DScan/SharedObjects/Log.cs