PosSharp v1.2.0 API Reference
---
#### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core')
### [PosSharp\.Core\.Lifecycle](PosSharp.Core.Lifecycle 'PosSharp\.Core\.Lifecycle').[StandardLifecycleHandler](PosSharp.Core.Lifecycle.StandardLifecycleHandler 'PosSharp\.Core\.Lifecycle\.StandardLifecycleHandler')
## StandardLifecycleHandler\.VerifyState\(ControlState, ControlState\) Method
Validates whether an operation is allowed in the current state\.
```csharp
public void VerifyState(PosSharp.Abstractions.ControlState currentState, PosSharp.Abstractions.ControlState requiredState);
```
#### Parameters
`currentState` [PosSharp\.Abstractions\.ControlState](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.controlstate 'PosSharp\.Abstractions\.ControlState')
The current logical state\.
`requiredState` [PosSharp\.Abstractions\.ControlState](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.controlstate 'PosSharp\.Abstractions\.ControlState')
The minimum state required for the operation\.
Implements [VerifyState\(ControlState, ControlState\)](PosSharp.Core.Lifecycle.IUposLifecycleHandler.VerifyState(PosSharp.Abstractions.ControlState,PosSharp.Abstractions.ControlState).md 'PosSharp\.Core\.Lifecycle\.IUposLifecycleHandler\.VerifyState\(PosSharp\.Abstractions\.ControlState, PosSharp\.Abstractions\.ControlState\)')
#### Exceptions
[UposStateException](PosSharp.Core.UposStateException 'PosSharp\.Core\.UposStateException')
Thrown if the current state does not meet requirements\.