C# Class Flatwhite.LogExecutionTimeAttribute

Inheritance: MethodFilterAttribute
Show file Open project: vanthoainguyen/Flatwhite

Public Methods

Method Description
LogExecutionTimeAttribute ( ) : System

Initializes in instance of PrintCallingTimeAttribute with minimum Order to make it run first

OnMethodExecuted ( MethodExecutedContext methodExecutedContext ) : void

Pop the current trace and print info

OnMethodExecuting ( MethodExecutingContext methodExecutingContext ) : void

Check if there is a parent trace, create a new trace and push to the stack which is stored in the CallContext

Private Methods

Method Description
GetTraceContexts ( ) : Stack

Method Details

LogExecutionTimeAttribute() public method

Initializes in instance of PrintCallingTimeAttribute with minimum Order to make it run first
public LogExecutionTimeAttribute ( ) : System
return System

OnMethodExecuted() public method

Pop the current trace and print info
public OnMethodExecuted ( MethodExecutedContext methodExecutedContext ) : void
methodExecutedContext MethodExecutedContext
return void

OnMethodExecuting() public method

Check if there is a parent trace, create a new trace and push to the stack which is stored in the CallContext
public OnMethodExecuting ( MethodExecutingContext methodExecutingContext ) : void
methodExecutingContext MethodExecutingContext
return void