PostSharpAPI ReferencePost­Sharp.​AspectsAssembly­Level­AspectSet­Aspect­Configuration
Open sandboxFocus

AssemblyLevelAspect.SetAspectConfiguration Method

SetAspectConfiguration(AspectConfiguration, Assembly)

Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.

Declaration
protected virtual void SetAspectConfiguration(AspectConfiguration aspectConfiguration, Assembly targetAssembly)
Parameters
Type Name Description
AspectConfiguration aspectConfiguration

The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method.

Assembly targetAssembly

Assembly to which the current aspect has been applied.

Remarks

Classes overriding this method must always invoke the base implementation before performing their own changes to the AspectConfiguration.

See Also

SetAspectConfiguration(AspectConfiguration, Object)

Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.

Declaration
protected sealed override void SetAspectConfiguration(AspectConfiguration aspectConfiguration, object targetElement)
Parameters
Type Name Description
AspectConfiguration aspectConfiguration

The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method.

Object targetElement

Code element (Assembly, System.Type, System.Reflection.FieldInfo, System.Reflection.MethodBase, System.Reflection.PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current Aspect has been applied.

Overrides
Aspect.SetAspectConfiguration(AspectConfiguration, Object)
Remarks

Classes overriding this method must always invoke the base implementation before performing their own changes to the AspectConfiguration.

See Also