Skip to content

Add server lifecycle participants - #1835

Merged
kevinherron merged 1 commit into
integration/1.2from
codex/server-lifecycle-participants
Aug 3, 2026
Merged

Add server lifecycle participants#1835
kevinherron merged 1 commit into
integration/1.2from
codex/server-lifecycle-participants

Conversation

@kevinherron

Copy link
Copy Markdown
Contributor

OpcUaServer currently has no supported lifecycle phase for application components that need the standard address space and core event facilities to be ready before any endpoint becomes visible. Components such as AliasManager and application namespaces must otherwise start either too early or after clients can already connect.

This adds a server-owned lifecycle participant API. Registered Lifecycle instances start in order after core initialization and before passive transport binding or reverse-connect startup. The server stops them in reverse order after removing external visibility, rolls back started participants when startup fails, and preserves cleanup failures without replacing the primary failure.

The existing Lifecycle and AbstractLifecycle APIs remain unchanged.

Provide server-owned components a startup seam after core facilities
initialize and before endpoints become externally visible. Ensure
deterministic ordering and cleanup across startup and shutdown failures.
@kevinherron
kevinherron marked this pull request as ready for review August 3, 2026 12:47
@kevinherron
kevinherron merged commit b199d6c into integration/1.2 Aug 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant