You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and my Pre/PostProcessor are rigistered succesfully, but not behaviour for that.
So, I go deep into underhood MediatR and found following:
Pre/PostProcessors will be registered if AutoRegisterRequestProcessors == true . source code *link*
RequestPre/PostProcessorBehavior will be registerd if we have at least one ServiceDescriptor in MediatR configuration!!: cfg.RequestPreProcessorsToRegister.Any() == true. source code *link*
Expected
Built-in RequestPre/PostProcessorBehaviors also MUST BE registred when any Pre/PostProcessers have already been registered
The text was updated successfully, but these errors were encountered:
Built-in RequestPre/PostProcessorBehaviors are not registered in DI after scaning assemblies for IRequestPre/PostProcessor.
Actual
I have MediatR injection with the following config:
and my Pre/PostProcessor are rigistered succesfully, but not behaviour for that.
So, I go deep into underhood MediatR and found following:
AutoRegisterRequestProcessors == true
. source code *link*cfg.RequestPreProcessorsToRegister.Any() == true
. source code *link*Expected
Built-in RequestPre/PostProcessorBehaviors also MUST BE registred when any Pre/PostProcessers have already been registered
The text was updated successfully, but these errors were encountered: