PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Dynamic­Advising Namespace / Dynamically­Advisable­Object Class

DynamicallyAdvisableObject Class

Base class for objects into which advices can be dynamically injected.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.DynamicAdvising
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class DynamicallyAdvisableObject : IDynamicallyAdvisable, 
	IQueryInterface, ISerializable, IDeserializationCallback

The DynamicallyAdvisableObject type exposes the following members.

Protected methodExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
Public methodGetAdviceEnumerator<T>
Gets an AdviceEnumerator<T> for all advices implementing a given interface on the current object.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Protected methodInitializeAdvices
Initializes the list of dynamic advices.
Public methodOnDeserialization
Runs when the entire object graph has been deserialized.
See Also