Пример #1
0
 public static void CreateMessage(Message message)
 {
     message.HashFingerprint = ComputeHash(message.MessageText);
     MessageDA.CreateMessage(message);
 }
Пример #2
0
 public static SubscribeMessage LoadMessage(Guid messageId, string topic)
 {
     return(MessageDA.LoadMessage(messageId, topic));
 }
Пример #3
0
 public static IEnumerable <ProcessFailRecord> LoadProcessFailRecords(Guid messageId)
 {
     return(MessageDA.LoadProcessFailRecords(messageId));
 }
Пример #4
0
 public static IEnumerable <Message> LoadPublishFailedMessage(int publishReloadTimeSpan)
 {
     return(MessageDA.LoadPublishFailedMessage(publishReloadTimeSpan));
 }
Пример #5
0
 public static IEnumerable <SubscribeMessage> LoadFailedMessages(MessageQueryFilter filter, out int totalCount)
 {
     return(MessageDA.LoadFailedMessages(filter, out totalCount));
 }
Пример #6
0
 public static void UpdateMessageStatusToFail(ProcessFailRecord record)
 {
     MessageDA.UpdateMessageStatusToFail(record.MessageId.Value, record.Topic);
     MessageDA.CreateProcessFailRecord(record);
 }
Пример #7
0
 public static void UpdateMessageStatusToSuccess(Guid messageId, string topic, long milliseconds)
 {
     MessageDA.UpdateMessageStatusToSuccess(messageId, topic, milliseconds);
 }
Пример #8
0
 public static void UpdateMessageStatusToPrepared(Guid messageId)
 {
     MessageDA.UpdateMessageStatusToPrepared(messageId);
 }
Пример #9
0
        public static bool ExistsMessage(string messageText)
        {
            string hashFingerprint = ComputeHash(messageText);

            return(MessageDA.ExistsMessage(hashFingerprint));
        }
Пример #10
0
 public static void UpdateMessageStatusToPublishFailed(Guid messageId)
 {
     MessageDA.UpdateMessageStatusToPublishFailed(messageId);
 }