Skip to content

Commit f24c465

Browse files
committed
Update package versions and modify exception logic
- Updated `MassTransit.RabbitMQ` from `8.3.2` to `8.3.3` in both `Genocs.Core.Demo.WebApi.csproj` and `Genocs.Core.Demo.Worker.csproj`. - Updated `MongoDB.Driver` from `3.0.0` to `3.1.0` in `Genocs.Persistence.MongoDb.csproj`. - Changed exception condition in `GetProductHandler.cs` from `if (currentValue < 90)` to `if (currentValue < 5)`, reducing the likelihood of exceptions.
1 parent 2654fe6 commit f24c465

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Genocs.Core.Demo.WebApi/Genocs.Core.Demo.WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</ItemGroup>
3333

3434
<ItemGroup>
35-
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.2" />
35+
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.3" />
3636
<PackageReference Include="Microsoft.AspNetCore.Authentication.Certificate" Version="9.0.0" />
3737
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" />
3838
</ItemGroup>

src/Genocs.Core.Demo.Worker/Genocs.Core.Demo.Worker.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<ItemGroup>
2323
<PackageReference Include="MassTransit.Extensions.DependencyInjection" Version="7.3.1" />
24-
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.2" />
24+
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.3" />
2525
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
2626
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="4.0.0" />
2727
</ItemGroup>

src/Genocs.Persistence.MongoDb/Genocs.Persistence.MongoDb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="MongoDB.Driver" Version="3.0.0" />
29+
<PackageReference Include="MongoDB.Driver" Version="3.1.0" />
3030
<PackageReference Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="2.0.0" />
3131
</ItemGroup>
3232

src/apps/products/Genocs.Products.WebApi/Queries/Handlers/GetProductHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public GetProductHandler(IMongoDbBaseRepository<Domain.Product, Guid> repository
1919
{
2020
int currentValue = _random.Next(0, 100);
2121

22-
if (currentValue < 90)
22+
if (currentValue < 5)
2323
{
2424
throw new Exception("Random exception");
2525
}

0 commit comments

Comments
 (0)