Click or drag to resize

InProcessClient Class

A client role class that can perform two-way message exchange between threads or processes on the same computer. The client connects to an already running instance of the InProcessServer class and exchanges messages over the established connection. An anonymous Pipe server is internally used for communication.
Inheritance Hierarchy
SystemObject
  Orthogonal.MixedCommsLibInProcessClient

Namespace: Orthogonal.MixedCommsLib
Assembly: Orthogonal.MixedCommsLib (in Orthogonal.MixedCommsLib.dll) Version: 2.0.3
Syntax
C#
public class InProcessClient

The InProcessClient type exposes the following members.

Constructors
 NameDescription
Public methodInProcessClient Constructs an in-process client.
Top
Properties
 NameDescription
Public propertyRxHandle The handle of the InProcessServer's receive pipe. The value is null when the client is stopped.
Public propertyTxHandle The handle of the InProcessServer's transmit pipe. The value is null when the client is stopped.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodSendAsync Sends a message to the anonymous server.
Public methodStart Requests the start of the client's background message processing thread and returns immediately. There will be a short unpredictable delay between return from this method and when the client reaches a started state. The ClientStarted event will be raised when the client reaches a started state.
Public methodStartAsync Requests the start of the client's background message processing thread and provides a way for the caller to await the client reaching the started state.
Public methodStopAsync Requsts the client processing to stop. There will be an unpredictable delay before the client stops. The ClientStopped event will be raised after the client has stopped.
Public methodToString
(Inherited from Object)
Top
Events
 NameDescription
Public eventStateChanged Parent apps can listen to this event to be notified of a change of state of the in-process client, and they be notified of the arrival of messages from the InProcessServer.
Top
See Also