Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Multicast / Multicast­Aspect / Multicast­Aspect

Constructor MulticastAspect

MulticastAspect(MulticastTargets, Boolean)

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.

Boolean 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.

MulticastAspect()

Declaration
protected MulticastAspect()