PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Dynamic­Advising Namespace/IExecute­Action­Dynamic­Advice Interface

IExecuteActionDynamicAdvice Interface

A dynamic advice around the execution of an action.

Namespace:  PostSharp.Patterns.DynamicAdvising
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.4.0 (6.5.4.0)
Syntax
C#
public interface IExecuteActionDynamicAdvice : IDynamicAdvice, 
	IDynamicInterfaceImplementation

The IExecuteActionDynamicAdvice type exposes the following members.

Properties
  NameDescription
Public propertyAdvisedObject
Gets the principal object for which the current object is an indirect interface implementation.
(Inherited from IDynamicInterfaceImplementation.)
Public propertyIdentity
Gets the type identity of the advice, which should correspond to the first parameter of the Advise(Type, Func<IQueryInterface, IDynamicAdvice>) method. This is typically the generic type definition of the advice
(Inherited from IDynamicAdvice.)
Public propertyOrder
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from IDynamicAdvice.)
Methods
  NameDescription
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from IDynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from IDynamicAdvice.)
Public methodInvoke<TResult, TAction>
Invokes the advice or the underlying method.
Public methodQueryInterface<T>
Gets the implementation of an interface.
(Inherited from IDynamicAdvice.)
See Also