docs: fill missing XML docs and strip tracking IDs from src comments
Clears CommentChecker findings in src/ (3,280 -> 209, the remainder being false positives like PLC-5/IEEE-754/M0.0) by adding missing summaries/params/returns, normalising inheritdoc usage, and removing Gitea/review tracking IDs while keeping the rationale they annotated. Comment-only: comment-stripped sources are identical to the parent commit.
This commit is contained in:
@@ -27,7 +27,7 @@ namespace ZB.MOM.WW.OtOpcUa.Runtime.DeploymentCache;
|
||||
/// <para>
|
||||
/// <b>Why <see langword="null"/>, not throw.</b> The caller treats <see langword="null"/>
|
||||
/// identically to today's "reconcile returned null": an apply failure that keeps
|
||||
/// last-known-good and does not advance the revision. A typed "no bytes" keeps the #485
|
||||
/// last-known-good and does not advance the revision. A typed "no bytes" keeps the
|
||||
/// contract explicit and cannot escape as an unhandled actor message.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
@@ -143,7 +143,7 @@ public sealed class GrpcDeploymentArtifactFetcher : IDeploymentArtifactFetcher,
|
||||
return new DeploymentArtifactService.DeploymentArtifactServiceClient(channel);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>Disposes every cached gRPC channel.</summary>
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var channel in _channels.Values)
|
||||
|
||||
@@ -24,6 +24,12 @@ public interface IDeploymentArtifactCache
|
||||
/// without limit.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <param name="clusterId">The cluster the artifact belongs to.</param>
|
||||
/// <param name="deploymentId">The deployment identifier.</param>
|
||||
/// <param name="revisionHash">The revision hash used for the integrity check.</param>
|
||||
/// <param name="artifact">The artifact bytes.</param>
|
||||
/// <param name="ct">Cancels the store.</param>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
Task StoreAsync(string clusterId, string deploymentId, string revisionHash,
|
||||
byte[] artifact, CancellationToken ct = default);
|
||||
|
||||
@@ -38,6 +44,9 @@ public interface IDeploymentArtifactCache
|
||||
/// missing half looks like a deliberate configuration rather than an error.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <param name="clusterId">The cluster to read.</param>
|
||||
/// <param name="ct">Cancels the read.</param>
|
||||
/// <returns>The current artifact, or <see langword="null"/> on a miss or failed integrity check.</returns>
|
||||
Task<CachedDeploymentArtifact?> GetCurrentAsync(string clusterId, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
@@ -57,6 +66,8 @@ public interface IDeploymentArtifactCache
|
||||
/// be quiet.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <param name="ct">Cancels the read.</param>
|
||||
/// <returns>The current artifact, or <see langword="null"/> when none is cached.</returns>
|
||||
Task<CachedDeploymentArtifact?> GetCurrentUnkeyedAsync(CancellationToken ct = default);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ public interface IDeploymentArtifactFetcher
|
||||
/// The verified artifact bytes, or <see langword="null"/> on ANY failure — every configured
|
||||
/// endpoint unreachable/NotFound, a zero-length stream, or a SHA-256 mismatch. A
|
||||
/// <see langword="null"/> is "no answer," NEVER an empty configuration: the caller treats it as
|
||||
/// an apply failure and keeps last-known-good (the #485 contract).
|
||||
/// an apply failure and keeps last-known-good (the unreadable-artifact contract).
|
||||
/// </returns>
|
||||
Task<byte[]?> FetchAsync(string deploymentId, string expectedRevisionHash, CancellationToken ct);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,9 @@ public sealed class LocalDbDeploymentArtifactCache : IDeploymentArtifactCache
|
||||
private readonly ILocalDb _db;
|
||||
private readonly ILogger<LocalDbDeploymentArtifactCache> _logger;
|
||||
|
||||
/// <summary>Initializes the cache over the pair-local database.</summary>
|
||||
/// <param name="db">The pair-local database.</param>
|
||||
/// <param name="logger">The logger.</param>
|
||||
public LocalDbDeploymentArtifactCache(ILocalDb db, ILogger<LocalDbDeploymentArtifactCache> logger)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(db);
|
||||
|
||||
Reference in New Issue
Block a user