Skip to content

Commit 114baf0

Browse files
authored
Add NServiceBus 10 version of the LearningPersistence snippets (#7747)
1 parent a9b7b84 commit 114baf0

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="NServiceBus" Version="10.0.0-alpha.3" />
7+
</ItemGroup>
8+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using NServiceBus;
2+
3+
class Usage
4+
{
5+
Usage(EndpointConfiguration endpointConfiguration)
6+
{
7+
#region LearningPersistence
8+
9+
endpointConfiguration.UsePersistence<LearningPersistence>();
10+
11+
#endregion
12+
}
13+
14+
void SagaStorageDirectory(EndpointConfiguration endpointConfiguration)
15+
{
16+
#region LearningPersistenceSagaStorageDirectory
17+
18+
var persistence = endpointConfiguration.UsePersistence<LearningPersistence>();
19+
persistence.SagaStorageDirectory("PathToStoreSagas");
20+
21+
#endregion
22+
}
23+
}

Snippets/LearningPersistence/Core_10/prerelease.txt

Whitespace-only changes.

Snippets/LearningPersistence/LearningPersistence.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core_8", "Core_8\Core_8.csp
88
EndProject
99
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core_9", "Core_9\Core_9.csproj", "{6CC2823B-4C96-4461-960D-4D0AA7058E05}"
1010
EndProject
11+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core_10", "Core_10\Core_10.csproj", "{F4272167-0B17-4058-99E2-F945C6CAADF3}"
12+
EndProject
1113
Global
1214
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1315
Debug|Any CPU = Debug|Any CPU
@@ -26,6 +28,10 @@ Global
2628
{6CC2823B-4C96-4461-960D-4D0AA7058E05}.Debug|Any CPU.Build.0 = Debug|Any CPU
2729
{6CC2823B-4C96-4461-960D-4D0AA7058E05}.Release|Any CPU.ActiveCfg = Release|Any CPU
2830
{6CC2823B-4C96-4461-960D-4D0AA7058E05}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{F4272167-0B17-4058-99E2-F945C6CAADF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32+
{F4272167-0B17-4058-99E2-F945C6CAADF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
33+
{F4272167-0B17-4058-99E2-F945C6CAADF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{F4272167-0B17-4058-99E2-F945C6CAADF3}.Release|Any CPU.Build.0 = Release|Any CPU
2935
EndGlobalSection
3036
GlobalSection(SolutionProperties) = preSolution
3137
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)