Class MethodInterceptionArgs
Arguments of advices of aspect type MethodInterceptionAspect.
Inheritance
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public abstract class MethodInterceptionArgs : AdviceArgs
Properties
Name | Description |
---|---|
Arguments | Gets the list of arguments with which the method has been invoked. |
AsyncBinding | Gets an interface that allows to invoke asynchronously the next node in the chain of invocation of the intercepted method. |
Binding | Gets an interface that allows to invoke the next node in the chain of invocation of the intercepted method. |
IsAsync | Determines whether the intercepted method is |
Method | Gets the method being executed. |
ReturnValue | Gets or sets the return value of the method. |
Methods
Name | Description |
---|---|
Invoke(Arguments) | Invokes the method that has been intercepted by calling the next node in the chain of invocation with given arguments, without affecting the property ReturnValue. |
InvokeAsync(Arguments) | Invokes asynchronously the method that has been intercepted by calling the next node in the chain of invocation with given arguments, without affecting the property ReturnValue. |
Proceed() | Proceeds with invocation of the method that has been intercepted by calling the next node in the chain of invocation, passing the current Arguments to that method and storing its return value into the property ReturnValue. |
ProceedAsync() | Proceeds asynchronously with invocation of the method that has been intercepted by calling the next node in the chain of invocation, passing the current Arguments to that method and storing its return value into the property ReturnValue upon the completion of the intercepted async method. |