Fix audit findings for coverage, architecture checks, and XML docs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user