Click or drag to resize

InProcessServer Class

A server role class that can perform two-way message exchange between threads or processes on the same computer. The server listens for messages sent by the InProcessClient classes and it can send messages back to the client. An anonymous Pipe server is internally used for communication.
Inheritance Hierarchy
SystemObject
  Orthogonal.MixedCommsLibInProcessServer

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

The InProcessServer type exposes the following members.

Constructors
 NameDescription
Public methodInProcessServer Constructs an in-process server.
Top
Properties
 NameDescription
Public propertyRxHandle Gets a string representation of the receive pipe's handle. The value is used in the constructor of the InProcessClient class.
Public propertyTxHandle Gets a string representation of the transmit pipe's handle. The value is used in the constructor of the InProcessClient class.
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 a listening client.
Public methodStart Requests the start of the server's background message processing thread and returns immediately. There will be a short unpredictable delay between return from this method and when the server reaches a started state. The ServerStarted event will be raised when the server reaches a started state. After the server reaches the started state, the TxHandle and RxHandle prroperty values will be set with unique values that can be passed to a InProcessClient class to establish a connection with the server.
Public methodStartAsync Requests the start of the server's background message processing thread and provides a way for the caller to await the server reaching the started state.
Public methodStopAsync Requests the server processing to stop and provides a way for the caller to await the server traching the stopped state.
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 server, and they be notified of the arrival of messages from the InProcessClient.
Top
See Also