Method ForTools
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ForTools(ICadRemoteHost, ICadRemoteDispatcher)
Makes the server of the tools of an app: the pipe OpenCAD2D.<process id>.tools, never announced in the
instance folder, open whether or not the app allows other programs to connect, and taking a client only with a token
IssueToken() gave. Call Start() on the thread of the drawings, as for the app's own server.
public static CadRemoteServer ForTools(ICadRemoteHost host, ICadRemoteDispatcher dispatcher)
Parameters
hostICadRemoteHostThe app's drawings and their commands.
dispatcherICadRemoteDispatcherRuns work on the thread the drawings belong to.
Returns
- CadRemoteServer
The server, not started.
Exceptions
- ArgumentNullException
Thrown when the host or the dispatcher is null.