Skip to content

Commit ae7bf48

Browse files
committed
Update saga tutorial 2 to use NServiceBus v9 and dotnet 8
1 parent b7d2273 commit ae7bf48

File tree

9 files changed

+24
-15
lines changed

9 files changed

+24
-15
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net48</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
5-
<LangVersion>10.0</LangVersion>
5+
<LangVersion>12.0</LangVersion>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="NServiceBus" Version="7.*" />
8+
<PackageReference Include="NServiceBus" Version="9.*" />
99
<ProjectReference Include="..\Messages\Messages.csproj" />
1010
</ItemGroup>
1111
</Project>

tutorials/nservicebus-sagas/2-timeouts/Solution/Billing/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ static async Task Main()
1212

1313
var endpointConfiguration = new EndpointConfiguration("Billing");
1414

15+
endpointConfiguration.UseSerialization<SystemJsonSerializer>();
16+
1517
var transport = endpointConfiguration.UseTransport<LearningTransport>();
1618

1719
var endpointInstance = await Endpoint.Start(endpointConfiguration);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net48</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
5-
<LangVersion>10.0</LangVersion>
5+
<LangVersion>12.0</LangVersion>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="NServiceBus" Version="7.*" />
8+
<PackageReference Include="NServiceBus" Version="9.*" />
99
<ProjectReference Include="..\Messages\Messages.csproj" />
1010
</ItemGroup>
1111
</Project>

tutorials/nservicebus-sagas/2-timeouts/Solution/ClientUI/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ static async Task Main()
1414

1515
var endpointConfiguration = new EndpointConfiguration("ClientUI");
1616

17+
endpointConfiguration.UseSerialization<SystemJsonSerializer>();
18+
1719
var transport = endpointConfiguration.UseTransport<LearningTransport>();
1820

1921
var routing = transport.Routing();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net48</TargetFramework>
4-
<LangVersion>10.0</LangVersion>
3+
<TargetFramework>net8.0</TargetFramework>
4+
<LangVersion>12.0</LangVersion>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="NServiceBus" Version="7.*" />
7+
<PackageReference Include="NServiceBus" Version="9.*" />
88
</ItemGroup>
99
</Project>

tutorials/nservicebus-sagas/2-timeouts/Solution/Sales/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ static async Task Main()
1212

1313
var endpointConfiguration = new EndpointConfiguration("Sales");
1414

15+
endpointConfiguration.UseSerialization<SystemJsonSerializer>();
16+
1517
var transport = endpointConfiguration.UseTransport<LearningTransport>();
1618

1719
var persistence = endpointConfiguration.UsePersistence<LearningPersistence>();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net48</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
5-
<LangVersion>10.0</LangVersion>
5+
<LangVersion>12.0</LangVersion>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="NServiceBus" Version="7.*" />
8+
<PackageReference Include="NServiceBus" Version="9.*" />
99
<ProjectReference Include="..\Messages\Messages.csproj" />
1010
</ItemGroup>
1111
</Project>

tutorials/nservicebus-sagas/2-timeouts/Solution/Shipping/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ static async Task Main()
1212

1313
var endpointConfiguration = new EndpointConfiguration("Shipping");
1414

15+
endpointConfiguration.UseSerialization<SystemJsonSerializer>();
16+
1517
var transport = endpointConfiguration.UseTransport<LearningTransport>();
18+
1619
var persistence = endpointConfiguration.UsePersistence<LearningPersistence>();
1720

1821
var endpointInstance = await Endpoint.Start(endpointConfiguration);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net48</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
5-
<LangVersion>10.0</LangVersion>
5+
<LangVersion>12.0</LangVersion>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="NServiceBus" Version="7.*" />
8+
<PackageReference Include="NServiceBus" Version="9.*" />
99
<ProjectReference Include="..\Messages\Messages.csproj" />
1010
</ItemGroup>
1111
</Project>

0 commit comments

Comments
 (0)