Skip to content

Commit 93b706c

Browse files
committed
.NET 10 upgrade
1 parent b22ecb3 commit 93b706c

22 files changed

Lines changed: 26 additions & 27 deletions

File tree

Cleipnir.Flows.Tests.AspNet/Cleipnir.Flows.Tests.AspNet.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

Cleipnir.Flows.Tests/Cleipnir.Flows.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

Cleipnir.Flows/Cleipnir.Flows.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<FileVersion>4.2.4.0</FileVersion>
77
<InformationalVersion>4.2.4.0</InformationalVersion>
88
<PackageVersion>4.2.4</PackageVersion>
9-
<TargetFramework>net9.0</TargetFramework>
9+
<TargetFramework>net10.0</TargetFramework>
1010
<Nullable>enable</Nullable>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
1212
<PackageProjectUrl>https://github.com/stidsborg/Cleipnir.Flows</PackageProjectUrl>

Cleipnir.Flows/Flows.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public interface IBaseFlows
1818
{
1919
public static abstract Type FlowType { get; }
2020

21-
public Task RouteMessage<T>(T message, string correlationId, string? idempotencyKey = null) where T : notnull;
21+
public Task RouteMessage<T>(T message, string correlationId, string? idempotencyKey = null) where T : class;
2222
}
2323

2424
public abstract class BaseFlows<TFlow> : IBaseFlows where TFlow : notnull
@@ -78,7 +78,7 @@ protected Next<TFlow, TParam, TResult> CreateMiddlewareCallChain<TParam, TResult
7878
);
7979
}
8080

81-
public abstract Task RouteMessage<T>(T message, string correlationId, string? idempotencyKey = null) where T : notnull;
81+
public abstract Task RouteMessage<T>(T message, string correlationId, string? idempotencyKey = null) where T : class;
8282
}
8383

8484
public class Flows<TFlow> : BaseFlows<TFlow> where TFlow : Flow
@@ -187,7 +187,7 @@ public override Task RouteMessage<T>(T message, string correlationId, string? id
187187
/// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
188188
/// <typeparam name="T">Type of the message</typeparam>
189189
/// <returns>A task which will complete when the message has been persisted</returns>
190-
public Task SendMessage<T>(FlowInstance flowInstance, T message, bool create = true, string? idempotencyKey = null) where T : notnull
190+
public Task SendMessage<T>(FlowInstance flowInstance, T message, bool create = true, string? idempotencyKey = null) where T : class
191191
=> _registration.SendMessage(flowInstance, message, create, idempotencyKey);
192192

193193
/// <summary>
@@ -312,7 +312,7 @@ public override Task RouteMessage<T>(T message, string correlationId, string? id
312312
/// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
313313
/// <typeparam name="T">Type of the message</typeparam>
314314
/// <returns>A task which will complete when the message has been persisted</returns>
315-
public Task SendMessage<T>(FlowInstance flowInstance, T message, string? idempotencyKey = null) where T : notnull
315+
public Task SendMessage<T>(FlowInstance flowInstance, T message, string? idempotencyKey = null) where T : class
316316
=> _registration.SendMessage(flowInstance, message, idempotencyKey);
317317

318318
/// <summary>
@@ -439,7 +439,7 @@ public override Task RouteMessage<T>(T message, string correlationId, string? id
439439
/// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
440440
/// <typeparam name="T">Type of the message</typeparam>
441441
/// <returns>A task which will complete when the message has been persisted</returns>
442-
public Task SendMessage<T>(FlowInstance flowInstance, T message, string? idempotencyKey = null) where T : notnull
442+
public Task SendMessage<T>(FlowInstance flowInstance, T message, string? idempotencyKey = null) where T : class
443443
=> _registration.SendMessage(flowInstance, message, idempotencyKey);
444444

445445
/// <summary>

Cli/Cleipnir.Flows.Cli.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

Samples/Cleipnir.Flows.Sample.AspNet/Cleipnir.Flows.Sample.AspNet.csproj

Lines changed: 1 addition & 1 deletion
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>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<RootNamespace>Cleipnir.Flows.Sample</RootNamespace>

Samples/Cleipnir.Flows.Sample.Presentation.AspNet/Cleipnir.Flows.Sample.Presentation.AspNet.csproj

Lines changed: 1 addition & 1 deletion
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>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<RootNamespace>Cleipnir.Flows.Sample.MicrosoftOpen</RootNamespace>

Samples/Cleipnir.Flows.Sample.Presentation/Cleipnir.Flows.Sample.Presentation.csproj

Lines changed: 1 addition & 2 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>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
@@ -13,7 +13,6 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="MailKit" Version="4.12.1" />
16-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.5" />
1716
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
1817
</ItemGroup>
1918
</Project>

Samples/Cleipnir.Flows.Samples.Console/Cleipnir.Flows.Sample.ConsoleApp.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

ServiceBuses/Kafka/Cleipnir.Flows.Kafka.Tests/Cleipnir.Flows.Kafka.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)