Table of Contents

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

host ICadRemoteHost

The app's drawings and their commands.

dispatcher ICadRemoteDispatcher

Runs 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.