-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
191 additions
and
212 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
src/LiteBus.Messaging.Abstractions/Descriptors/IDescriptor.cs
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/LiteBus.Messaging.Abstractions/Descriptors/IErrorHandlerDescriptor.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/LiteBus.Messaging.Abstractions/Descriptors/IHandlerDescriptor.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/LiteBus.Messaging.Abstractions/Descriptors/IPostHandlerDescriptor.cs
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/LiteBus.Messaging.Abstractions/Descriptors/IPreHandlerDescriptor.cs
This file was deleted.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
src/LiteBus.Messaging.Abstractions/Registry/Descriptors/IErrorHandlerDescriptor.cs
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,9 @@ | ||
namespace LiteBus.Messaging.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a descriptor for an error handler, providing metadata about the handler such as the message type it handles, | ||
/// its execution order, and any associated tags. | ||
/// </summary> | ||
public interface IErrorHandlerDescriptor : IHandlerDescriptor | ||
{ | ||
} |
32 changes: 32 additions & 0 deletions
32
src/LiteBus.Messaging.Abstractions/Registry/Descriptors/IHandlerDescriptor.cs
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 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace LiteBus.Messaging.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a descriptor for a handler, providing metadata about the handler such as the message type it handles, | ||
/// its execution order, and any associated tags. | ||
/// </summary> | ||
public interface IHandlerDescriptor | ||
{ | ||
/// <summary> | ||
/// Gets the type of the message that the handler is associated with. If the message type is generic, | ||
/// this property returns the generic type definition. | ||
/// </summary> | ||
Type MessageType { get; } | ||
|
||
/// <summary> | ||
/// Gets the order in which the handler should be executed. Handlers with lower order values are executed first. | ||
/// </summary> | ||
int Order { get; } | ||
|
||
/// <summary> | ||
/// Gets a collection of tags associated with the handler. Tags can be used to categorize or identify handlers in a flexible way. | ||
/// </summary> | ||
IReadOnlyCollection<string> Tags { get; } | ||
|
||
/// <summary> | ||
/// Gets the type of the handler. This represents the actual implementation type of the handler. | ||
/// </summary> | ||
Type HandlerType { get; } | ||
} |
15 changes: 15 additions & 0 deletions
15
src/LiteBus.Messaging.Abstractions/Registry/Descriptors/IMainHandlerDescriptor.cs
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,15 @@ | ||
using System; | ||
|
||
namespace LiteBus.Messaging.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a descriptor for a main handler, providing metadata about the handler such as the message type it handles, | ||
/// its execution order, any associated tags, and the type of the result produced by the handler. | ||
/// </summary> | ||
public interface IMainHandlerDescriptor : IHandlerDescriptor | ||
{ | ||
/// <summary> | ||
/// Gets the type of the result produced by the main handler. | ||
/// </summary> | ||
Type MessageResultType { get; } | ||
} |
11 changes: 7 additions & 4 deletions
11
...actions/Descriptors/IMessageDescriptor.cs → ...egistry/Descriptors/IMessageDescriptor.cs
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
15 changes: 15 additions & 0 deletions
15
src/LiteBus.Messaging.Abstractions/Registry/Descriptors/IPostHandlerDescriptor.cs
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,15 @@ | ||
using System; | ||
|
||
namespace LiteBus.Messaging.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a descriptor for a post-handler, providing metadata about the handler such as the message type it handles, | ||
/// its execution order, any associated tags, and the type of the result that is expected by the user as an argument. | ||
/// </summary> | ||
public interface IPostHandlerDescriptor : IHandlerDescriptor | ||
{ | ||
/// <summary> | ||
/// Gets the type of the result produced by the main handler that is associated with this post-handler. | ||
/// </summary> | ||
Type MessageResultType { get; } | ||
} |
9 changes: 9 additions & 0 deletions
9
src/LiteBus.Messaging.Abstractions/Registry/Descriptors/IPreHandlerDescriptor.cs
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,9 @@ | ||
namespace LiteBus.Messaging.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a descriptor for a pre-handler, providing metadata about the handler such as the message type it handles, | ||
/// its execution order, and any associated tags. | ||
/// </summary> | ||
public interface IPreHandlerDescriptor : IHandlerDescriptor | ||
{ | ||
} |
File renamed without changes.
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
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
15 changes: 0 additions & 15 deletions
15
src/LiteBus.Messaging/Internal/Registry/Abstractions/IDescriptorBuilder[TDescriptor].cs
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.