Last post Jan 29, 2015 12:06 PM by kappasims3
Jan 26, 2015 04:28 PM|kappasims3|LINK
Since services are cached in a ConcurrentDictionary which allows for non-blocking reads, are dependencies of user-registered services, (for example an IExceptionHandler) therefore open to issues when handling exceptions?
I register a class that inherits from ExceptionHandler, with an additional injected dependency in the constructor. If the dependency changes at all within one thread's Handle event will concurrent threads also be impacted by these changes?
Jan 29, 2015 03:39 AM|LemonStreet|LINK
About Inside the Concurrent Collections: ConcurrentDictionary, you could refer to the link below:
Jan 29, 2015 12:06 PM|kappasims3|LINK
According to the article, TryGetValue is lockless. Does that therefore mean that objects I register in HttpConfiguration.Services need to contain code to keep other threads from entering the code simultaneously if there are sensitive areas?