Skip to content

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

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

PosSharp v1.2.0 API Reference


StandardLifecycleHandler.VerifyState(ControlState, ControlState) Method

Validates whether an operation is allowed in the current state.

public void VerifyState(PosSharp.Abstractions.ControlState currentState, PosSharp.Abstractions.ControlState requiredState);

Parameters

currentState PosSharp.Abstractions.ControlState

The current logical state.

requiredState PosSharp.Abstractions.ControlState

The minimum state required for the operation.

Implements VerifyState(ControlState, ControlState)

Exceptions

UposStateException
Thrown if the current state does not meet requirements.

Clone this wiki locally