c# - Need to use ConcurrentQueue and ConcurrentDictionary side by side -
i have requirement messages can added concurrentqueue
in parallel. , have thread reads messages , logs them @ frequent intervals. don't want repeat same message logged multiples times in interval, instead want log message x repeated y times in z amount of time. want keep order of occurrence of messages. keeping count using concurrentdictionary
tried few ways getting bit complicated lock. can fulfill requirement without needing lock.
Comments
Post a Comment