PostSharpAPI ReferencePost­Sharp.​Patterns.​Dynamic­AdvisingDynamically­Advisable­Object
Open sandboxFocus

Class DynamicallyAdvisableObject

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

Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class DynamicallyAdvisableObject : Object, IDynamicallyAdvisable, IQueryInterface

Constructors

Name Description
DynamicallyAdvisableObject()
DynamicallyAdvisableObject(SerializationInfo, StreamingContext)

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)

Populates a SerializationInfo with the data needed to serialize the target object.

InitializeAdvices(IExecuteActionDynamicAdvice)

Initializes the list of dynamic advices.

OnDeserialization(Object)

Runs when the entire object graph has been deserialized.

Explicit Interface Implementations

Name Description
IDynamicallyAdvisable.Advise(Type, Func<IQueryInterface, IDynamicAdvice>)
IDynamicallyAdvisable.QueryAdvice<T>()
IDynamicallyAdvisable.Unadvise(Type)
IQueryInterface.QueryInterface<T>()