MetalamaAPI documentationExtensions APIMetalama.​Extensions.​MulticastMulticast­Inheritance
Open sandboxFocus

MulticastInheritance Class

In Metalama, aspect inheritance is ruled at the class level by the InheritableAttribute custom attribute. In Metalama itself, only Strict inheritance is implemented. MulticastAspect and MulticastImplementation implement an emulation of the Multicast inheritance mode by passing the proper parameter to the constructor.

Inheritance
System.Object
MulticastInheritance
Namespace: Metalama.Extensions.Multicast
Assembly: Metalama.Extensions.Multicast.dll
Syntax
[RunTimeOrCompileTime]
public sealed class MulticastInheritance : Enum

Fields

Name Description
Multicast

This inheritance mode means that multicasting is also performed after inheritance. To enable this inheritance mode with Metalama, the aspect must implement multicasting using MulticastAspect or IMulticastAttribute and MulticastImplementation, and must pass the adequate value to the constructor of these classes.

None

No inheritance.

Strict

This is the default inheritance mode when InheritableAttribute is added to an aspect class. It means that multicasting is performed before inheritance, but not after. There is no need of IMulticastAttribute to enable this kind of inheritance with Metalama.

value__