You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/MultiFunctionApplicationHelpers.csproj
Copy file name to clipboardExpand all lines: tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/NetStandardLibraries/MongoDB/CustomMongoDbEntity.cs
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
// Copyright 2020 New Relic, Inc. All rights reserved.
Copy file name to clipboardExpand all lines: tests/Agent/IntegrationTests/SharedApplications/Common/MultiFunctionApplicationHelpers/NetStandardLibraries/MongoDB/MongoDBDriverExerciser.cs
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
// Copyright 2020 New Relic, Inc. All rights reserved.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
-
// Several methods exercised here do not exist in MongoDB.Driver version 2.3 which is the oldest we support on .NET Framework. It is bound to the net462 TFM in MultiFunctionApplicationHelpers.csproj
5
-
#if NET462
4
+
// Several methods exercised here do not exist in MongoDB.Driver version 2.3 which is the oldest we support on .NET Framework. It is bound to the net471 TFM in MultiFunctionApplicationHelpers.csproj
5
+
#if NET471
6
6
#define MONGODRIVER2_3
7
7
#endif
8
8
@@ -11,6 +11,9 @@
11
11
#define MONGODRIVER2_8_1
12
12
#endif
13
13
14
+
// net462 has the legacy MongoDB client
15
+
#if !NET462
16
+
14
17
usingSystem.Collections.Generic;
15
18
usingSystem.Linq;
16
19
usingMongoDB.Driver;
@@ -561,7 +564,7 @@ public async Task<long> CountAsync()
561
564
#pragma warning restore CS0618// Type or member is obsolete
562
565
#endif
563
566
564
-
// CountDocuments{Async} did not exist in driver version 2.3 which is bound to net462 in MultiFunctionApplicationHelpers.csproj
567
+
// CountDocuments{Async} did not exist in driver version 2.3 which is bound to net471 in MultiFunctionApplicationHelpers.csproj
565
568
#if !MONGODRIVER2_3
566
569
[LibraryMethod]
567
570
[Transaction]
@@ -610,7 +613,7 @@ public async Task<IAsyncCursor<string>> DistinctAsync()
0 commit comments