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; } }
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); }