-
First i apologize if this is a basic thing, but i have tried to find an example and have tested a few different ways to register to no avail. Have read the docs a few times and nothing i try seems to work. Prior to 12.1, this worked fine with automatic registration via scanning. I understand that from 12.1 on, manual registration is required for Pre/Post processors. I have a LoginQuery with this signature: I want my post processor to trigger only for these specific queries (requests). My IRequestPostProcessor signature is: I have tried a few ways to register this, but the post processor is never called when using 12.1.X. Any examples or advise would be very much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
How did you register the post processor? That looks like an open post processor so it should be: cfg.AddOpenRequestPostProcessor(typeof(LoginQueryPostProcessor<,>)); |
Beta Was this translation helpful? Give feedback.
-
after moving MediatR.Extensions.Microsoft.DependencyInjection into this repository. It does feel like this is a breaking change should of probably gone to 13? |
Beta Was this translation helpful? Give feedback.
-
@jbogard Agree with @cheng93, without carefully reading the notes and/or having a thorough dependency testing, it is possible to miss that |
Beta Was this translation helpful? Give feedback.
How did you register the post processor? That looks like an open post processor so it should be: