-
Notifications
You must be signed in to change notification settings - Fork 61
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
1 parent
83b5257
commit 726ab01
Showing
221 changed files
with
11,095 additions
and
11,347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace Abc.Zebus | ||
namespace Abc.Zebus; | ||
|
||
public interface ICommand : IMessage | ||
{ | ||
public interface ICommand : IMessage | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace Abc.Zebus | ||
namespace Abc.Zebus; | ||
|
||
public interface IEvent : IMessage | ||
{ | ||
public interface IEvent : IMessage | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace Abc.Zebus | ||
namespace Abc.Zebus; | ||
|
||
public interface IMessage | ||
{ | ||
public interface IMessage | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using System; | ||
|
||
namespace Abc.Zebus | ||
namespace Abc.Zebus; | ||
|
||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class MessageTypeIdAttribute : Attribute | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class MessageTypeIdAttribute : Attribute | ||
{ | ||
public Guid MessageTypeId { get; } | ||
public Guid MessageTypeId { get; } | ||
|
||
public MessageTypeIdAttribute(string typeId) | ||
{ | ||
MessageTypeId = Guid.Parse(typeId); | ||
} | ||
public MessageTypeIdAttribute(string typeId) | ||
{ | ||
MessageTypeId = Guid.Parse(typeId); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
using System; | ||
|
||
namespace Abc.Zebus.Routing | ||
namespace Abc.Zebus.Routing; | ||
|
||
/// <summary> | ||
/// Indicates that the target message is routable. | ||
/// </summary> | ||
/// <remarks> | ||
/// <para> | ||
/// A routable message must have routable members. The routable members must be explicitly specified using <see cref="RoutingPositionAttribute"/>. | ||
/// </para> | ||
/// <para> | ||
/// The default subscription mode of routable message is <c>Manual</c>, i.e.: subscriptions must be manually created with <c>IBus.Subscribe</c>. | ||
/// If you update an existing message to make it routable, consider specifying <c>AutoSubscribe = true</c> to keep previous subscription mode. | ||
/// </para> | ||
/// </remarks> | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class Routable : Attribute | ||
{ | ||
/// <summary> | ||
/// Indicates that the target message is routable. | ||
/// Indicates whether the default subscription mode for the target message is Auto (<c>AutoSubscribe == true</c>) or Manual. | ||
/// </summary> | ||
/// <remarks> | ||
/// <para> | ||
/// A routable message must have routable members. The routable members must be explicitly specified using <see cref="RoutingPositionAttribute"/>. | ||
/// </para> | ||
/// <para> | ||
/// The default subscription mode of routable message is <c>Manual</c>, i.e.: subscriptions must be manually created with <c>IBus.Subscribe</c>. | ||
/// If you update an existing message to make it routable, consider specifying <c>AutoSubscribe = true</c> to keep previous subscription mode. | ||
/// </para> | ||
/// <see cref="AutoSubscribe"/> configures the default subscription mode for the target message. The subscription mode | ||
/// can still be overriden per message handler using the <c>SubscriptionMode</c> attribute. | ||
/// </remarks> | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class Routable : Attribute | ||
{ | ||
/// <summary> | ||
/// Indicates whether the default subscription mode for the target message is Auto (<c>AutoSubscribe == true</c>) or Manual. | ||
/// </summary> | ||
/// <remarks> | ||
/// <see cref="AutoSubscribe"/> configures the default subscription mode for the target message. The subscription mode | ||
/// can still be overriden per message handler using the <c>SubscriptionMode</c> attribute. | ||
/// </remarks> | ||
public bool AutoSubscribe { get; set; } | ||
} | ||
public bool AutoSubscribe { get; set; } | ||
} |
17 changes: 8 additions & 9 deletions
17
src/Abc.Zebus.Contracts/Routing/RoutingPositionAttribute.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using System; | ||
|
||
namespace Abc.Zebus.Routing | ||
namespace Abc.Zebus.Routing; | ||
|
||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] | ||
public sealed class RoutingPositionAttribute : Attribute | ||
{ | ||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] | ||
public sealed class RoutingPositionAttribute : Attribute | ||
{ | ||
public int Position { get; } | ||
public int Position { get; } | ||
|
||
public RoutingPositionAttribute(int position) | ||
{ | ||
Position = position; | ||
} | ||
public RoutingPositionAttribute(int position) | ||
{ | ||
Position = position; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
using System; | ||
|
||
namespace Abc.Zebus | ||
namespace Abc.Zebus; | ||
|
||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class TransientAttribute : Attribute | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class TransientAttribute : 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
Oops, something went wrong.