Skip to content

PosSharp.Core.Lifecycle.UposLifecycleManager.VerifyState

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

PosSharp v1.2.0 API Reference


UposLifecycleManager.VerifyState Method

Overloads
VerifyState(ControlState) Verifies that the device is in the required state.
VerifyState(ControlState[]) Verifies that the device is in one of the allowed states.

UposLifecycleManager.VerifyState(ControlState) Method

Verifies that the device is in the required state.

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

Parameters

requiredState PosSharp.Abstractions.ControlState

The required state.

UposLifecycleManager.VerifyState(ControlState[]) Method

Verifies that the device is in one of the allowed states.

public void VerifyState(params PosSharp.Abstractions.ControlState[] allowedStates);

Parameters

allowedStates PosSharp.Abstractions.ControlState[]

The allowed states.

Exceptions

UposStateException
Thrown when verification fails.

Clone this wiki locally