Photomechanics API
|
Represents turntable command that has status and can be awaited. More...
Public Member Functions | |
Task | WaitEnterProcessingStateAsync () |
Wait for command to enter TurntableCommandStatus.Processing state asynchronously. Processing state means that turntable accepted command, started executing it and will return Success status later on. Used for lengthy processes (i.e. rotation commands). More... | |
Task | WaitFinishAsync () |
Wait for command to finish asynchronously. More... | |
Properties | |
TurntableCommandStatus | Status [get] |
Command status. More... | |
ILogger | Logger [get] |
Logger attached to this command. More... | |
Events | |
TypedEventHandler< ITurntableCommand, TurntableCommandStatus > | StatusChanged |
Occurs when command execution is finished. | |
Represents turntable command that has status and can be awaited.
Task ITurntableCommand.WaitEnterProcessingStateAsync | ( | ) |
Wait for command to enter TurntableCommandStatus.Processing state asynchronously. Processing state means that turntable accepted command, started executing it and will return Success status later on. Used for lengthy processes (i.e. rotation commands).
Implemented in TurntableCommandBase.
Task ITurntableCommand.WaitFinishAsync | ( | ) |
Wait for command to finish asynchronously.
Implemented in TurntableCommandBase.
|
get |
Command status.
Implemented in TurntableCommandBase.
|
get |
Logger attached to this command.
Adding logger as constructor parameter to all commands will require too much refactoring. Injecting from command runners instead.
Implemented in TurntableCommandBase.