Open sandboxFocus

Constructor MulticastAspect

MulticastAspect(MulticastTargets, bool)

Initializes a new instance of the MulticastAspect class.

Declaration
protected MulticastAspect(MulticastTargets targets, bool multicastOnInheritance = false)
Parameters
Type Name Description
MulticastTargets targets

The set of targets that this aspect can be multicast to. The aspect class must also implement the corresponding generic instances of the IAspect<T> interface.

bool multicastOnInheritance

A value indicating whether an aspect instance, when it is inherited, should also multicast to children. The default is false. It corresponds to the Strict multicast inheritance mode in PostSharp. When set to true, the behavior is equivalent to Multicast.