File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
Snippets/FileShareDataBus/DataBus_1 Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change
1
+ using NServiceBus ;
2
+
1
3
namespace CleanupStrategy
2
4
{
3
5
using NServiceBus . ClaimCheck ;
4
6
5
7
class Define
6
8
{
7
- Define ( NServiceBus . EndpointConfiguration endpointConfiguration )
9
+ Define ( EndpointConfiguration endpointConfiguration )
8
10
{
9
11
#region DefineFileLocationForDatabusFiles
10
12
11
- var dataBus = endpointConfiguration . UseDataBus < FileShareDataBus , SystemJsonDataBusSerializer > ( ) ;
12
- dataBus . BasePath ( @"\\share\databus_attachments\" ) ;
13
+ var claimCheck = endpointConfiguration . UseClaimCheck < FileShareClaimCheck , SystemJsonClaimCheckSerializer > ( ) ;
14
+ claimCheck . BasePath ( @"\\share\databus_attachments\" ) ;
13
15
14
16
#endregion
15
17
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ namespace CleanupStrategy
4
4
using System . IO ;
5
5
using System . Threading . Tasks ;
6
6
using NServiceBus ;
7
+ using NServiceBus . ClaimCheck ;
7
8
8
9
#region HandlerThatCleansUpDatabus
9
10
Original file line number Diff line number Diff line change 3
3
<TargetFramework >net8.0</TargetFramework >
4
4
</PropertyGroup >
5
5
<ItemGroup >
6
- <PackageReference Include =" NServiceBus.ClaimCheck" Version =" 1.* " />
6
+ <PackageReference Include =" NServiceBus.ClaimCheck" Version =" 1.0.0-alpha.1 " />
7
7
</ItemGroup >
8
8
</Project >
Original file line number Diff line number Diff line change 1
- using NServiceBus . ClaimCheck ;
1
+ using NServiceBus ;
2
+ using NServiceBus . ClaimCheck ;
2
3
3
4
class Usage
4
5
{
5
6
Usage ( NServiceBus . EndpointConfiguration endpointConfiguration , string databusPath )
6
7
{
7
8
#region FileShareDataBus
8
9
9
- var dataBus = endpointConfiguration . UseDataBus < FileShareDataBus , SystemJsonDataBusSerializer > ( ) ;
10
- dataBus . BasePath ( databusPath ) ;
10
+ var claimCheck = endpointConfiguration . UseClaimCheck < FileShareClaimCheck , SystemJsonClaimCheckSerializer > ( ) ;
11
+ claimCheck . BasePath ( databusPath ) ;
11
12
12
13
#endregion
13
14
}
You can’t perform that action at this time.
0 commit comments