Skip to content

Conversation

@viceroypenguin
Copy link
Member

Supports a shared Behaviors list, by applying [Behaviors] to an Attribute, which can then be applied a handler.

[Behaviors(
  typeof(ValidationBehavior<,>), typeof(TransactionBehavior<,>)
)]
public sealed class DefaultBehaviorsAttribute : Attribute;

// usage
[Handler]
[DefaultBehaviors]
internal static partial class AddDataSourceCommand;

Fixes #141

@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...ors/ImmediateHandlersGenerator.TransformHandler.cs 99.09% <100.00%> (+0.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow BehaviorsAttribute inheritance

2 participants