Class CadRemoteToolRun
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
A run of a tool's command, the command the user typed in a drawing and a program outside the app works for (see CreateRunCommand(string, bool, string, Action<CadRemoteToolRun>)). It lives from the command's start to its end, whichever way the command ends; its members are read and called on the thread of the drawings.
public sealed class CadRemoteToolRun
- Inheritance
-
CadRemoteToolRun
- Inherited Members
Properties
- Document
Gets the drawing the command was typed in, which the run works in.
- DocumentId
Gets the number the tools channel gives that drawing, which a tool names in its requests of the drawing.
- Error
Gets the line of the error the tool ended the run with, or the one that kept it from beginning; null for any other end.
- Id
Gets the number of the run, which the tool names in every request of it; from 1, the next one for each run of the server.
- IsEnded
Gets whether the run has ended.
- Name
Gets the name of the command, in capitals.
- Outcome
Gets how the run ended; null while it runs.
Methods
- Cancel()
Ends the run as Esc does, from the app's side: the tool process is gone or hangs. Its changes are taken back, the question open, if any, is answered as cancelled, and every later request of the run is refused. Does nothing once the run has ended.
Events
- Ended
Raised when the run has ended, its changes kept or taken back, on the thread of the drawings, as the command line ends the command: a handler may write a line, but starts no command.