PostSharpAPI ReferencePost­Sharp.​AspectsOn­Method­Boundary­AspectSet­Aspect­Configuration
Open sandboxFocus

OnMethodBoundaryAspect.SetAspectConfiguration Method

SetAspectConfiguration(AspectConfiguration, MethodBase)

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.

protected override void SetAspectConfiguration(AspectConfiguration aspectConfiguration, MethodBase targetMethod)
Type Name Description
AspectConfiguration aspectConfiguration

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

MethodBase targetMethod

Method to which the current aspect has been applied.

MethodLevelAspect.SetAspectConfiguration(AspectConfiguration, MethodBase)

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

See Also