Camster
β
IMemoryCache missing Contains?
I see what you mean. I was confused because when I google it, everything says "just use contains", but I can't find contains. Nonetheless, I think I can see how I can just use TryGetValue or GetOrCreate to do what needs to be done. I suppose that check isn't necessary
12 replies
β
MediatR Pipeline where TResponse has a generic type
I found the solution here: https://github.com/jbogard/MediatR/issues/182
3 replies
β
MediatR Pipeline where TResponse has a generic type
I want to use MediatR's pipeline to log exceptions to a separate database. But I'm not quite sure how to add a third generic type to the IPipelineBehavior. I tried this:
But I get an error that basically says the implementation Type can't be converted to the service type. Any help would be appreciated!
3 replies