mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 移除直接的Mediator包依赖,改用Source Generator方式集成 - 添加RegisterMediator方法用于配置Mediator框架 - 添加RegisterMediatorBehavior方法用于注册管道行为 - 实现LoggingBehavior用于记录CQRS请求处理日志 - 实现PerformanceBehavior用于监控请求执行性能 - 更新架构配置以支持Mediator自定义配置 - 优化容器冻结检查的代码结构
35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
||
|
||
<!--
|
||
配置项目构建属性
|
||
设置项目生成文档文件,并包含特定的Polyfill
|
||
-->
|
||
<PropertyGroup>
|
||
<PackageId>GeWuYou.$(AssemblyName)</PackageId>
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||
<MeziantouPolyfill_IncludedPolyfills>T:System.Diagnostics.CodeAnalysis.NotNullWhenAttribute</MeziantouPolyfill_IncludedPolyfills>
|
||
<Nullable>enable</Nullable>
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||
</PropertyGroup>
|
||
|
||
<!-- 引入必要的命名空间 -->
|
||
<ItemGroup>
|
||
<Using Include="GFramework.Core.Abstractions"/>
|
||
</ItemGroup>
|
||
<ItemGroup>
|
||
<PackageReference Update="Meziantou.Analyzer" Version="2.0.299">
|
||
<PrivateAssets>all</PrivateAssets>
|
||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||
</PackageReference>
|
||
<PackageReference Update="Meziantou.Polyfill" Version="1.0.101">
|
||
<PrivateAssets>all</PrivateAssets>
|
||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||
</PackageReference>
|
||
<PackageReference Include="Mediator.Abstractions" Version="3.0.1"/>
|
||
<PackageReference Include="Mediator.SourceGenerator" Version="3.0.1">
|
||
<PrivateAssets>all</PrivateAssets>
|
||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||
</PackageReference>
|
||
</ItemGroup>
|
||
</Project>
|