I need a background queue service for my dotnet 6 application. I followed this Microsoft doc to create the bones of it.
Because of the nature of my application, it is possible for an item to be added more than once to my queue which I would like to avoid for efficiency.
Is there any way to check if the id exists in the channel before I add it?
All I can find is the Channel.Reader.TryPeek()
method which I don't think is able to provide what I need.