Fix audit findings for coverage, architecture checks, and XML docs
All checks were successful
NuGet Publish / build-and-pack (push) Successful in 45s
NuGet Publish / publish-to-gitea (push) Successful in 52s

This commit is contained in:
Joseph Doherty
2026-02-20 15:43:25 -05:00
parent 5528806518
commit 3ffd468c79
99 changed files with 23746 additions and 9548 deletions

View File

@@ -36,6 +36,13 @@ public class DocumentCollection<T> : DocumentCollection<ObjectId, T> where T : c
{
}
/// <summary>
/// Initializes a new document collection that uses <see cref="ObjectId"/> as the primary key.
/// </summary>
/// <param name="storage">The storage engine used for persistence.</param>
/// <param name="transactionHolder">The transaction context holder.</param>
/// <param name="mapper">The document mapper for <typeparamref name="T"/>.</param>
/// <param name="collectionName">Optional collection name override.</param>
internal DocumentCollection(IStorageEngine storage, ITransactionHolder transactionHolder, IDocumentMapper<T> mapper, string? collectionName = null)
: base(storage, transactionHolder, mapper, collectionName)
{
@@ -90,10 +97,17 @@ public partial class DocumentCollection<TId, T> : IDisposable, ICompactionAwareC
{
}
/// <summary>
/// Initializes a new instance of the document collection.
/// </summary>
/// <param name="storage">The storage engine used for persistence.</param>
/// <param name="transactionHolder">The transaction context holder.</param>
/// <param name="mapper">The mapper used to serialize and deserialize documents.</param>
/// <param name="collectionName">Optional collection name override.</param>
internal DocumentCollection(IStorageEngine storage, ITransactionHolder transactionHolder, IDocumentMapper<TId, T> mapper, string? collectionName = null)
{
_storage = storage ?? throw new ArgumentNullException(nameof(storage));
_transactionHolder = transactionHolder ?? throw new ArgumentNullException(nameof(transactionHolder));
{
_storage = storage ?? throw new ArgumentNullException(nameof(storage));
_transactionHolder = transactionHolder ?? throw new ArgumentNullException(nameof(transactionHolder));
_mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
_collectionName = collectionName ?? _mapper.CollectionName;
_cdcPublisher = new CollectionCdcPublisher<TId, T>(
@@ -141,6 +155,7 @@ public partial class DocumentCollection<TId, T> : IDisposable, ICompactionAwareC
}
}
/// <inheritdoc />
void ICompactionAwareCollection.RefreshIndexBindingsAfterCompaction()
{
var metadata = _storage.GetCollectionMetadata(_collectionName);