fca978de07
Sweep of 203 source files resolving CommentChecker findings: add <summary>/<param>/<returns>/<inheritdoc> where missing, and remove resolved task/issue tracking markers (Tests-NNN, Worker-NNN, Server-NNN, Task N) from code comments. Comment/doc-only — no logic changes. Server+Tests build clean under TreatWarningsAsErrors.
21 lines
614 B
C#
21 lines
614 B
C#
namespace ZB.MOM.WW.MxGateway.Server.Workers;
|
|
|
|
public sealed class WorkerProcessStartedProbe : IWorkerStartupProbe
|
|
{
|
|
/// <inheritdoc />
|
|
public Task WaitUntilReadyAsync(
|
|
IWorkerProcess process,
|
|
WorkerProcessLaunchRequest request,
|
|
CancellationToken cancellationToken)
|
|
{
|
|
if (process.HasExited)
|
|
{
|
|
throw new WorkerProcessLaunchException(
|
|
WorkerProcessLaunchErrorCode.StartupFailed,
|
|
$"Worker process exited before startup completed with exit code {process.ExitCode}.");
|
|
}
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|