opt:升级cap到8.1.2

This commit is contained in:
李鹏军 2024-05-11 10:13:00 +08:00
parent 5b12642faf
commit 7482521e75
2 changed files with 5 additions and 7 deletions

View File

@ -17,10 +17,10 @@
<PackageReference Include="Volo.Abp.FluentValidation" Version="7.0.2" />
<PackageReference Include="SJZY.UserCenter.HttpApi" Version="3.0.3-alpha8" />
<PackageReference Include="SJZY.Expand.CAP" Version="7.8.0" />
<PackageReference Include="DotNetCore.CAP" Version="8.0.1" />
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="8.0.1" />
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="8.0.1" />
<PackageReference Include="DotNetCore.CAP.MySql" Version="8.0.1" />
<PackageReference Include="DotNetCore.CAP" Version="8.1.2"/>
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="8.1.2"/>
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="8.1.2"/>
<PackageReference Include="DotNetCore.CAP.MySql" Version="8.1.2"/>
</ItemGroup>
<ItemGroup>

View File

@ -89,10 +89,8 @@ namespace SJZY.Track.Application
// options.TopicNamePrefix = "v1";
options.FailedRetryInterval = configuration.GetValue<int>("CAP:FailedRetryInterval");
options.FailedRetryCount = configuration.GetValue<int>("CAP:FailedRetryCount");
options.ConsumerThreadCount = configuration.GetValue<int>("CAP:ConsumerThreadCount");
options.SucceedMessageExpiredAfter = configuration.GetValue<int>("CAP:SucceedMessageExpiredAfter");
options.UseDispatchingPerGroup = configuration.GetValue<bool>("CAP:UseDispatchingPerGroup");
options.EnableConsumerPrefetch = true;
options.EnableSubscriberParallelExecute = true;
options.UseDashboard(dashboardOptions =>
{