fix: retain certificate ownership and optional alarm workflows

This commit is contained in:
Joseph Doherty
2026-11-10 10:34:10 -05:00
parent 08354231f8
commit 9712e66ff4
3 changed files with 7 additions and 1 deletions
@@ -519,8 +519,10 @@ public sealed class OpcUaApplicationHost : IAsyncDisposable
ClientConfiguration = new ClientConfiguration(),
};
await config.ValidateAsync(ApplicationType.Server, ct).ConfigureAwait(false);
// Validation creates the certificate manager before awaiting certificate loads. Give the
// application ownership first so failed/canceled startup disposes that manager too.
_application!.ApplicationConfiguration = config;
await config.ValidateAsync(ApplicationType.Server, ct).ConfigureAwait(false);
return config;
}