Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>

<PropertyGroup>
<LangVersion>13</LangVersion>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>12</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<OutputType>Library</OutputType>
<GenerateProgramFile>false</GenerateProgramFile>
Expand All @@ -23,15 +23,15 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Orleans.TestingHost" Version="9.2.1"/>
<PackageReference Include="Microsoft.Orleans.TestingHost" Version="8.2.0"/>
<PackageReference Include="FluentAssertions" Version="7.0.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="System.Text.Json" Version="9.0.8"/>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.8"/>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.8"/>
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.8"/>
<PackageReference Include="System.Text.Json" Version="8.0.5"/>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10"/>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="8.0.10"/>
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.10"/>
<PackageReference Include="xunit" Version="2.9.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task CompleteWorkflow_AllTypes_ShouldSerializeCorrectly()
var grain = _grainFactory.GetGrain<ITestSerializationGrain>(Guid.NewGuid());

// Step 1: Send a command
var commandId = Guid.CreateVersion7();
var commandId = Guid.NewGuid();
var paymentRequest = new PaymentRequest
{
OrderId = "order-999",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public async Task CommandT_WithComplexPayload_ShouldSerializeCorrectly()
}
};

var command = Command<PaymentRequest>.From(Guid.CreateVersion7(), payload);
var command = Command<PaymentRequest>.From(Guid.NewGuid(), payload);
command.CommandType = "ProcessPayment";
command.CorrelationId = "correlation-789";
command.CausationId = "causation-012";
Expand Down
2 changes: 1 addition & 1 deletion ManagedCode.Communication/Commands/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected Command(Guid commandId, string commandType)
/// </summary>
public static Command Create(string commandType)
{
return new Command(Guid.CreateVersion7(), commandType);
return new Command(Guid.NewGuid(), commandType);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion ManagedCode.Communication/Commands/CommandT.From.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial class Command<T>
{
public static Command<T> Create(T value)
{
return new Command<T>(Guid.CreateVersion7(), value);
return new Command<T>(Guid.NewGuid(), value);
}

public static Command<T> Create(Guid id, T value)
Expand Down
4 changes: 2 additions & 2 deletions ManagedCode.Communication/ManagedCode.Communication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PackageTags>managedcode, Communication, Result</PackageTags>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.8"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.8"/>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2"/>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="ManagedCode.Communication.AspNetCore"/>
Expand Down
Loading