C# Class Simple.Services.DefaultInterceptor

Inheritance: IInterceptor
Show file Open project: juanplopes/simple

Private Properties

Property Type Description
AfterExecuteActions void
BeforeExecuteActions void
FinallyExecuteActions void

Public Methods

Method Description
DefaultInterceptor ( Func hooks, IContextHandler headerHandler, bool client ) : System
Intercept ( object target, MethodBase method, object args ) : object

Protected Methods

Method Description
CorrectMethod ( object target, MethodBase method ) : MethodBase
GetInvocationDelegate ( MethodBase method ) : InvocationDelegate
Invoke ( object target, MethodBase method, object args ) : object

Private Methods

Method Description
AfterExecuteActions ( object target, MethodBase method, object args, List list ) : void
BeforeExecuteActions ( object target, MethodBase method, object args, List list ) : void
FinallyExecuteActions ( MethodBase method, List list ) : void

Method Details

CorrectMethod() protected method

protected CorrectMethod ( object target, MethodBase method ) : MethodBase
target object
method System.Reflection.MethodBase
return System.Reflection.MethodBase

DefaultInterceptor() public method

public DefaultInterceptor ( Func hooks, IContextHandler headerHandler, bool client ) : System
hooks Func
headerHandler IContextHandler
client bool
return System

GetInvocationDelegate() protected method

protected GetInvocationDelegate ( MethodBase method ) : InvocationDelegate
method System.Reflection.MethodBase
return InvocationDelegate

Intercept() public method

public Intercept ( object target, MethodBase method, object args ) : object
target object
method System.Reflection.MethodBase
args object
return object

Invoke() protected method

protected Invoke ( object target, MethodBase method, object args ) : object
target object
method System.Reflection.MethodBase
args object
return object