feat(application): add dependency injection configuration & documentation
- Implement DependencyInjection.cs with AddApplication() extension
- Register MediatR with assembly scanning
- Register pipeline behaviors in execution order:
1. CheckQueryExecutionBehavior
2. MainQueryExecutionBehavior
3. ReCRequestExecutionBehavior
- Conditional package versions (MediatR 9.0.0/12.4.1)
- Add comprehensive README.md
- Architecture overview & CQRS pipeline flow
- Configuration guide (DexJobOptions, ErrorAction)
- DI setup examples (AddApplication, AddInfrastructure)
- Exception handling patterns
- Multi-targeting notes & troubleshooting
- Update project file with MediatR.Extensions.DependencyInjection
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
|
||||
<!-- MediatR for .NET Framework 4.8 -->
|
||||
<PackageReference Include="MediatR" Version="9.0.0" />
|
||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
|
||||
|
||||
Reference in New Issue
Block a user