Skip to content

Commit 58d2b22

Browse files
CopilotKSemenenko
andcommitted
Initial setup: Fix .NET version compatibility and prepare for rate limiter and retry implementation
Co-authored-by: KSemenenko <4385716+KSemenenko@users.noreply.github.com>
1 parent 2ec212e commit 58d2b22

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>13</LangVersion>
5-
<TargetFramework>net9.0</TargetFramework>
4+
<LangVersion>12</LangVersion>
5+
<TargetFramework>net8.0</TargetFramework>
66
<EnableNETAnalyzers>true</EnableNETAnalyzers>
77
<Nullable>enable</Nullable>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

ManagedCode.Communication.Tests/ManagedCode.Communication.Tests.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<OutputType>Library</OutputType>
77
<GenerateProgramFile>false</GenerateProgramFile>
@@ -23,15 +23,15 @@
2323
</None>
2424
</ItemGroup>
2525
<ItemGroup>
26-
<PackageReference Include="Microsoft.Orleans.TestingHost" Version="9.2.1"/>
26+
<PackageReference Include="Microsoft.Orleans.TestingHost" Version="8.2.0"/>
2727
<PackageReference Include="FluentAssertions" Version="7.0.0"/>
28-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8"/>
28+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1"/>
2929
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
3030
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
31-
<PackageReference Include="System.Text.Json" Version="9.0.8"/>
32-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.8"/>
33-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.8"/>
34-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.8"/>
31+
<PackageReference Include="System.Text.Json" Version="8.0.5"/>
32+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10"/>
33+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="8.0.10"/>
34+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.10"/>
3535
<PackageReference Include="xunit" Version="2.9.3"/>
3636
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

ManagedCode.Communication.Tests/Orleans/OrleansSerializationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public async Task CompleteWorkflow_AllTypes_ShouldSerializeCorrectly()
3131
var grain = _grainFactory.GetGrain<ITestSerializationGrain>(Guid.NewGuid());
3232

3333
// Step 1: Send a command
34-
var commandId = Guid.CreateVersion7();
34+
var commandId = Guid.NewGuid();
3535
var paymentRequest = new PaymentRequest
3636
{
3737
OrderId = "order-999",

ManagedCode.Communication.Tests/Orleans/Serialization/CommandSerializationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public async Task CommandT_WithComplexPayload_ShouldSerializeCorrectly()
153153
}
154154
};
155155

156-
var command = Command<PaymentRequest>.From(Guid.CreateVersion7(), payload);
156+
var command = Command<PaymentRequest>.From(Guid.NewGuid(), payload);
157157
command.CommandType = "ProcessPayment";
158158
command.CorrelationId = "correlation-789";
159159
command.CausationId = "causation-012";

ManagedCode.Communication/Commands/Command.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected Command(Guid commandId, string commandType)
7373
/// </summary>
7474
public static Command Create(string commandType)
7575
{
76-
return new Command(Guid.CreateVersion7(), commandType);
76+
return new Command(Guid.NewGuid(), commandType);
7777
}
7878

7979
/// <summary>

ManagedCode.Communication/Commands/CommandT.From.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial class Command<T>
66
{
77
public static Command<T> Create(T value)
88
{
9-
return new Command<T>(Guid.CreateVersion7(), value);
9+
return new Command<T>(Guid.NewGuid(), value);
1010
}
1111

1212
public static Command<T> Create(Guid id, T value)

ManagedCode.Communication/ManagedCode.Communication.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<PackageTags>managedcode, Communication, Result</PackageTags>
1414
</PropertyGroup>
1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.8"/>
17-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.8"/>
16+
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1"/>
17+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2"/>
1818
</ItemGroup>
1919
<ItemGroup>
2020
<InternalsVisibleTo Include="ManagedCode.Communication.AspNetCore"/>

0 commit comments

Comments
 (0)