File tree Expand file tree Collapse file tree 5 files changed +10
-14
lines changed
Orleans.Providers.MongoDB Expand file tree Collapse file tree 5 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 15
15
<PackageTags >Orleans OrleansProviders MongoDB</PackageTags >
16
16
<SymbolPackageFormat >snupkg</SymbolPackageFormat >
17
17
<TargetFrameworks >net8.0</TargetFrameworks >
18
- <Version >8.1.0</Version >
19
18
</PropertyGroup >
20
19
21
20
<ItemGroup >
24
23
<PrivateAssets >all</PrivateAssets >
25
24
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
26
25
</PackageReference >
27
- <PackageReference Include =" MongoDB.Driver" Version =" 2.28 .0" />
26
+ <PackageReference Include =" MongoDB.Driver" Version =" 3.0 .0" />
28
27
</ItemGroup >
29
28
30
29
<ItemGroup >
Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
- <PackageReference Include =" EphemeralMongo6 " Version =" 1.1.3 " />
10
- <PackageReference Include =" Microsoft.Extensions.Logging.Console " Version =" 8.0.0 " />
11
- <PackageReference Include =" Microsoft.Extensions.Hosting " Version =" 8 .0.0" />
9
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console " Version =" 8.0.1 " />
10
+ <PackageReference Include =" Microsoft.Extensions.Hosting " Version =" 8.0.1 " />
11
+ <PackageReference Include =" MongoSandbox8 " Version =" 1 .0.0" />
12
12
</ItemGroup >
13
13
14
14
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
using System . Linq ;
3
3
using System . Net ;
4
4
using System . Threading . Tasks ;
5
- using EphemeralMongo ;
6
5
using Microsoft . Extensions . DependencyInjection ;
7
6
using Microsoft . Extensions . Hosting ;
8
7
using Microsoft . Extensions . Logging ;
9
8
using MongoDB . Bson ;
10
9
using MongoDB . Bson . Serialization ;
11
10
using MongoDB . Bson . Serialization . Conventions ;
12
11
using MongoDB . Bson . Serialization . Serializers ;
12
+ using MongoSandbox ;
13
13
using Newtonsoft . Json ;
14
14
using Orleans . Configuration ;
15
15
using Orleans . Hosting ;
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
25
25
{
26
26
var createShardKey = false ;
27
27
28
- using var mongoRunner = MongoRunner . Run ( ) ;
28
+ using var mongoRunner = MongoRunner . Run ( new MongoRunnerOptions { KillMongoProcessesWhenCurrentProcessExits = true } ) ;
29
29
30
30
Console . WriteLine ( "MongoDB ConnectionString: {0}" , mongoRunner . ConnectionString ) ;
31
31
@@ -216,8 +216,6 @@ private static void ApplyBsonConfiguration()
216
216
} ,
217
217
t => true ) ;
218
218
219
- // http://mongodb.github.io/mongo-csharp-driver/2.11/reference/bson/guidserialization/guidrepresentationmode/guidrepresentationmode/
220
- BsonDefaults . GuidRepresentationMode = GuidRepresentationMode . V3 ;
221
219
BsonSerializer . RegisterSerializer ( new GuidSerializer ( GuidRepresentation . Standard ) ) ;
222
220
}
223
221
}
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using EphemeralMongo ;
3
2
using MongoDB . Driver ;
3
+ using MongoSandbox ;
4
4
using Orleans . Providers . MongoDB . Utils ;
5
5
6
6
namespace Orleans . Providers . MongoDB . UnitTest . Fixtures
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFramework >net8.0</TargetFramework >
4
4
<AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
- <PackageReference Include =" EphemeralMongo6" Version =" 1.1.3" />
13
- <PackageReference Include =" FluentAssertions" Version =" 6.12.1" />
14
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.9.0" />
12
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1" />
13
+ <PackageReference Include =" MongoSandbox8" Version =" 1.0.0" />
15
14
<PackageReference Include =" xunit" Version =" 2.9.2" />
16
15
</ItemGroup >
17
16
You can’t perform that action at this time.
0 commit comments