Table of Contents

ICadRemoteDispatcher

from OpenCAD2D import ICadRemoteDispatcher

class ICadRemoteDispatcher(System.Object) ยท ICadRemoteDispatcher in the .NET reference

Runs work on the thread the app's drawings belong to. The server reads its pipe on threads of its own and hands every request to the dispatcher, so that a drawing is only touched by the thread that owns it.

Methods

Invoke

.NET

def Invoke(self, action: System.Action[()]) -> None

Runs the action on the thread of the drawings and returns when it has finished. An exception is the action's to catch: the server's actions do.