- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.2k
 
Migration Guide 12.0 to 12.1
        Jimmy Bogard edited this page Jul 7, 2023 
        ·
        1 revision
      
    With 12.1, AddMediatR no longer scans for any implementations of:
- Behaviors
 - Stream behaviors
 - Pre-processors
 - Post-processors
 
You will need to explicitly register these with methods:
- Behaviors
AddBehaviorAddOpenBehavior
 - Stream behaviors
AddStreamBehaviorAddOpenStreamBehavior
 - Pre processors
AddRequestPreProcessorAddOpenRequestPreProcessor
 - Post processors
AddRequestPostProcessorAddOpenRequestPostProcessor
 
Since you couldn't change the order of these with the scanning approach, AddMediatR now registers with ServiceCollection in the exact order added to each list of registrations.