Base class for objects into which advices can be dynamically injected.
Inheritance
DynamicallyAdvisableObject
Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class DynamicallyAdvisableObject : IDynamicallyAdvisable, IQueryInterface, ISerializable, IDeserializationCallback
Constructors
Name | Description |
---|---|
DynamicallyAdvisableObject() | Initializes a new DynamicallyAdvisableObject. Constructors of derived classes are supposed to call the InitializeAdvices(IExecuteActionDynamicAdvice) too. |
Methods
Name | Description |
---|---|
ExecuteWithAdvices<TResult, TAction>(ObjectAccessLevel, ref TAction) | Executes an action wrapped by all custom advices added to the current object. |
GetAdviceEnumerator<T>() | Gets an AdviceEnumerator<T> for all advices implementing a given interface on the current object. |
GetObjectData(SerializationInfo, StreamingContext) | |
InitializeAdvices(IExecuteActionDynamicAdvice) | Initializes the list of dynamic advices. |
OnDeserialization(object) |