Open sandboxFocus

Method SetAspectConfiguration

SetAspectConfiguration(AspectConfiguration, FieldInfo)

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, FieldInfo targetField)
Parameters
Type Name Description
AspectConfiguration aspectConfiguration

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

FieldInfo targetField

Field 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 override sealed 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, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current Aspect has been applied.

Overrides
Remarks

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

See Also