Skip to content

Allow BehaviorsAttribute inheritance #141

Open
@swimmesberger

Description

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 {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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