Ejemplo n.º 1
0
 public bool TryGetFailureInfoForMessage(string messageId, out ProcessingFailureInfo processingFailureInfo)
 {
     lock (lockObject)
     {
         if (failureInfoPerMessage.TryGetValue(messageId, out var node))
         {
             processingFailureInfo = node.FailureInfo;
             return(true);
         }
         processingFailureInfo = null;
         return(false);
     }
 }
        public bool TryGetFailureInfoForMessage(string messageId, out ProcessingFailureInfo processingFailureInfo)
        {
            lock (lockObject)
            {
                FailureInfoNode node;
                if (!failureInfoPerMessage.TryGetValue(messageId, out node))
                {
                    processingFailureInfo = null;
                    return false;
                }
                processingFailureInfo = node.FailureInfo;

                return true;
            }
        }
Ejemplo n.º 3
0
 public FailureInfoNode(string messageId, ProcessingFailureInfo failureInfo)
 {
     FailureInfo            = failureInfo;
     LeastRecentlyUsedEntry = new LinkedListNode <string>(messageId);
 }
 public FailureInfoNode(string messageId, ProcessingFailureInfo failureInfo)
 {
     FailureInfo = failureInfo;
     LeastRecentlyUsedEntry = new LinkedListNode<string>(messageId);
 }