Skip to content

PosSharp.Core.Lifecycle.StandardLifecycleHandler.ValidateTransition(PosSharp.Abstractions.ControlState,PosSharp.Abstractions.ControlState)

github-actions[bot] edited this page May 8, 2026 · 5 revisions

PosSharp v1.2.0 API Reference


StandardLifecycleHandler.ValidateTransition(ControlState, ControlState) Method

Validates whether a transition to a specific state is allowed from the current state.

public void ValidateTransition(PosSharp.Abstractions.ControlState currentState, PosSharp.Abstractions.ControlState targetState);

Parameters

currentState PosSharp.Abstractions.ControlState

The current logical state.

targetState PosSharp.Abstractions.ControlState

The target logical state.

Implements ValidateTransition(ControlState, ControlState)

Exceptions

UposStateException
Thrown if the transition is invalid.

Clone this wiki locally