Any command that is running on the PIXL can be aborted by calling the Abort method on the PIXLClient.
Aborting a running command |
Copy Code
|
---|---|
pixl.Abort(); |
This will notify the PIXL that the command it is currently running should come to a premature end in a controlled manner. Aborting a command might not cause the command to end immediately.
Aborting a running command and checking the result |
Copy Code
|
---|---|
var result = pixl.Abort().Result; if (result.IsSuccess) Console.WriteLine("Abort has been processed."); else Console.WriteLine($"Operation could not be aborted because {result.Message}"); |
If the progress of a pending Abort is required, please check the OperationalStatus property of the PIXLClient. In particular, the CommandStatus property provides the status of the running command.