Simply3DScan
SharedObjects.Log Class Reference
Inheritance diagram for SharedObjects.Log:
Collaboration diagram for SharedObjects.Log:

Public Member Functions

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...
 

Detailed Description

Definition at line 11 of file Log.cs.

Member Function Documentation

override void SharedObjects.Log.OnEntry ( MethodExecutionArgs  args)

Method executed before the body of methods to which this aspect is applied.

Parameters
argsEvent 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.

20  {
21  StackFrame frame = new StackFrame(1,true);
22  Singleton<Logger>.Instance.LogInfo($"Starting {args.Method}", frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber());
23  base.OnEntry(args);
24  }
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
argsEvent arguments specifying which method is being executed and which are its arguments.

Definition at line 33 of file Log.cs.

34  {
35 
36  StackFrame frame = new StackFrame(1, true);
37  Singleton<Logger>.Instance.LogInfo($"Exit {args.Method}", frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber());
38  base.OnExit(args);
39  }

The documentation for this class was generated from the following file: