diff --git a/src/Cap.Consistency/Infrastructure/ConsistencyMessage.cs b/src/Cap.Consistency/Infrastructure/ConsistencyMessage.cs index edd8d97..4accc0f 100644 --- a/src/Cap.Consistency/Infrastructure/ConsistencyMessage.cs +++ b/src/Cap.Consistency/Infrastructure/ConsistencyMessage.cs @@ -5,7 +5,7 @@ namespace Cap.Consistency.Infrastructure /// /// The default implementation of which uses a string as a primary key. /// - public class ConsistencyMessage : ConsistencyMessage + public class ConsistencyMessage { /// /// Initializes a new instance of . @@ -19,6 +19,16 @@ namespace Cap.Consistency.Infrastructure UpdateTime = SendTime; Status = MessageStatus.WaitForSend; } + + public string Id { get; set; } + + public DateTime SendTime { get; set; } + + public string Payload { get; set; } + + public MessageStatus Status { get; set; } + + public virtual DateTime? UpdateTime { get; set; } } /// @@ -31,21 +41,4 @@ namespace Cap.Consistency.Infrastructure RollbackSuccessed = 3, RollbackFailed = 4 } - - /// - /// Represents a message in the consistency system - /// - /// The type used for the primary key for the message. - public class ConsistencyMessage where TKey : IEquatable - { - public virtual TKey Id { get; set; } - - public virtual DateTime SendTime { get; set; } - - public string Payload { get; set; } - - public MessageStatus Status { get; set; } - - public virtual DateTime? UpdateTime { get; set; } - } } \ No newline at end of file diff --git a/src/Cap.Consistency/Infrastructure/IConsumerExcutorSelector.cs b/src/Cap.Consistency/Infrastructure/IConsumerExcutorSelector.cs index a8bf4bb..321c7c8 100644 --- a/src/Cap.Consistency/Infrastructure/IConsumerExcutorSelector.cs +++ b/src/Cap.Consistency/Infrastructure/IConsumerExcutorSelector.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Text; using Cap.Consistency.Abstractions; -using Cap.Consistency.Routing; namespace Cap.Consistency.Infrastructure {