-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New attributes for "compound" handlers. Closes GH-172
- Loading branch information
Jeremy D. Miller
authored and
Jeremy D. Miller
committed
Feb 13, 2023
1 parent
3a9fbd5
commit 0f7f0f5
Showing
5 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace Wolverine.Attributes; | ||
|
||
/// <summary> | ||
/// Marks a method on middleware types or handler types as a method | ||
/// that should be called before the actual handler | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public class WolverineBeforeAttribute : Attribute | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Marks a method on middleware types or handler types as a method | ||
/// that should be called after the actual handler | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public class WolverineAfterAttribute : Attribute | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Marks a method on middleware types or handler types as a method | ||
/// that should be called after the actual handler in the finally block of | ||
/// a try/finally block around the message handlers | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public class WolverineFinallyAttribute : Attribute | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters