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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -