|
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 11 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 19 of file Log.cs.
21 StackFrame frame =
new StackFrame(1,
true);
22 Singleton<Logger>.Instance.LogInfo($
"Starting {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 33 of file Log.cs.
36 StackFrame frame =
new StackFrame(1,
true);
37 Singleton<Logger>.Instance.LogInfo($
"Exit {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