Skip to content

Allow BehaviorsAttribute inheritance #141

@swimmesberger

Description

@swimmesberger

By inheriting from the BehaviorsAttribute (it's currently sealed) we could combine multiple behaviors in e.g. a common behavior type for certain projects:

public sealed class DefaultBehaviorsAttribute: BehaviorsAttribute {
    public DefaultBehaviorsAttribute() : base(typeof(ValidationBehaviour<,>), typeof(TransactionBehavior<,>)) { }
}

// usage
[Handler]
[DefaultBehaviors]
internal static partial class AddDataSourceCommand {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions