forked from mongodb/mongo-csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
2,846 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# .NET Driver Version 2.23.1 Release Notes | ||
|
||
This is a patch release that addresses some issues reported since 2.23.0 was released. | ||
|
||
An online version of these release notes is available [here](https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v2.23.1.md). | ||
|
||
The list of JIRA tickets resolved in this release is available at [CSHARP JIRA project](https://jira.mongodb.org/issues/?jql=project%20%3D%20CSHARP%20AND%20fixVersion%20%3D%202.23.1%20ORDER%20BY%20key%20ASC). | ||
|
||
Documentation on the .NET driver can be found [here](https://www.mongodb.com/docs/drivers/csharp/v2.23/). | ||
|
||
## Upgrading | ||
|
||
There are no known backwards breaking changes in this release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# .NET Driver Version 2.23.2 Release Notes | ||
|
||
This is a patch release that addresses some issues reported since 2.23.1 was released. | ||
|
||
An online version of these release notes is available [here](https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v2.23.2.md). | ||
|
||
The list of JIRA tickets resolved in this release is available at [CSHARP JIRA project](https://jira.mongodb.org/issues/?jql=project%20%3D%20CSHARP%20AND%20fixVersion%20%3D%202.23.2%20ORDER%20BY%20key%20ASC). | ||
|
||
Documentation on the .NET driver can be found [here](https://www.mongodb.com/docs/drivers/csharp/v2.23/). | ||
|
||
## Upgrading | ||
|
||
There are no known backwards breaking changes in this release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# .NET Driver Version 2.24.0 Release Notes | ||
|
||
This is the general availability release for the 2.24.0 version of the driver. | ||
|
||
The main new features in 2.24.0 include: | ||
|
||
* New DistinctMany method in IMongoCollection | ||
* Support for latest $dateFromString optional arguments | ||
* ExceededTimeLimit server error is now retryable for reads as well as writes | ||
* Support sort by score in $search stage | ||
* New custom method to test if a field exists or is missing in LINQ (Mql.Exists, Mql.IsMissing, Mql.IsNullOrMissing) | ||
* Enable TLS 1.3 support | ||
* Fix a GridFS error when attempting to upload a GridFS file with a duplicate id and the new file is smaller than the original file | ||
* Add support for Atlas Search $in operator | ||
* Add support for IComparable CompareTo method in LINQ queries | ||
* Add VectorSearchScore builder for $vectorSearch stage | ||
* Update libmongocrypt package version | ||
* Support for nested AsQueryable in LINQ queries (not a common use case but legal, primarily added for use by the EF Core Provider) | ||
* Updated authentication to occur over OP_MSG on supporting servers to improve MongoDB Atlas Serverless compatibility | ||
* Use polling monitoring when running within a FaaS environment such as AWS Lambda | ||
* Fixed segfault in Kerberos (libgssapi) on newer Linux distros | ||
|
||
An online version of these release notes is available [here](https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v2.24.0.md). | ||
|
||
The full list of issues resolved in this release is available at [CSHARP JIRA project](https://jira.mongodb.org/issues/?jql=project%20%3D%20CSHARP%20AND%20fixVersion%20%3D%202.24.0%20ORDER%20BY%20key%20ASC). | ||
|
||
Documentation on the .NET driver can be found [here](https://www.mongodb.com/docs/drivers/csharp/v2.24/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/MongoDB.Driver.Core/Core/Configuration/LibraryInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* Copyright 2010-present MongoDB Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
using System; | ||
using Etherna.MongoDB.Driver.Core.Misc; | ||
|
||
namespace Etherna.MongoDB.Driver.Core.Configuration | ||
{ | ||
/// <summary> | ||
/// Represents information about a library using the .NET driver. | ||
/// </summary> | ||
public sealed class LibraryInfo : IEquatable<LibraryInfo> | ||
{ | ||
/// <summary> | ||
/// Gets the library name. | ||
/// </summary> | ||
public string Name { get; } | ||
|
||
/// <summary> | ||
/// Gets the library version. | ||
/// </summary> | ||
public string Version { get; } | ||
|
||
// constructors | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="LibraryInfo"/> class. | ||
/// </summary> | ||
/// <param name="name">The library name.</param> | ||
/// <param name="version">The library version.</param> | ||
public LibraryInfo(string name, string version = default) | ||
{ | ||
Name = Ensure.IsNotNullOrEmpty(name, nameof(name)); | ||
Version = version; | ||
} | ||
|
||
// public operators | ||
/// <summary> | ||
/// Determines whether two <see cref="LibraryInfo"/> instances are equal. | ||
/// </summary> | ||
/// <param name="lhs">The LHS.</param> | ||
/// <param name="rhs">The RHS.</param> | ||
/// <returns> | ||
/// <c>true</c> if the left hand side is equal to the right hand side; otherwise, <c>false</c>. | ||
/// </returns> | ||
public static bool operator ==(LibraryInfo lhs, LibraryInfo rhs) | ||
{ | ||
return object.Equals(lhs, rhs); // handles lhs == null correctly | ||
} | ||
|
||
/// <summary> | ||
/// Determines whether two <see cref="LibraryInfo"/> instances are not equal. | ||
/// </summary> | ||
/// <param name="lhs">The LHS.</param> | ||
/// <param name="rhs">The RHS.</param> | ||
/// <returns> | ||
/// <c>true</c> if the left hand side is not equal to the right hand side; otherwise, <c>false</c>. | ||
/// </returns> | ||
public static bool operator !=(LibraryInfo lhs, LibraryInfo rhs) | ||
{ | ||
return !(lhs == rhs); | ||
} | ||
|
||
// public methods | ||
/// <summary> | ||
/// Determines whether the specified <see cref="LibraryInfo" /> is equal to this instance. | ||
/// </summary> | ||
/// <param name="rhs">The <see cref="LibraryInfo" /> to compare with this instance.</param> | ||
/// <returns> | ||
/// <c>true</c> if the specified <see cref="LibraryInfo" /> is equal to this instance; otherwise, <c>false</c>. | ||
/// </returns> | ||
public bool Equals(LibraryInfo rhs) | ||
{ | ||
return | ||
rhs != null && | ||
Name == rhs.Name && | ||
Version == rhs.Version; | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override bool Equals(object obj) => Equals(obj as LibraryInfo); | ||
|
||
/// <inheritdoc/> | ||
public override int GetHashCode() => base.GetHashCode(); | ||
|
||
/// <inheritdoc/> | ||
public override string ToString() => $"{Name}-{Version}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.