Skip to content

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

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

PosSharp v1.2.0 API Reference


IUposLifecycleHandler.VerifyState(ControlState, ControlState) Method

Validates whether an operation is allowed in the current state.

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.

Exceptions

UposStateException
Thrown if the current state does not meet requirements.

Clone this wiki locally