Skip to content

ClientAPI

ElbyFross edited this page Jan 9, 2020 · 1 revision

Remarks

A static API class that provides common methods for simplifying handle of client pipes' tasks.

  • Provides ClientLoop that handles a TrasmissionLine tasks.
    • Establishing of a NamedPipeClientStream instance.
    • Connection waiting.
    • Queries queue management.
    • Interrupting of a current active query.
    • Invoking of a query execution handler.
  • Manages transmission lines.
    • Registration at the table.
    • Unregistration form the table.
    • Client finalizing.

Examples

Finalizing of a client app

Before app will finished there must be closed all opened transmission lines. Otherwise app's process will hold till all streams will be closed.

You can close all started lines by calling by calling the CloseAllTransmissionLines method.

C#

// Starting an app and transmission lines.
...
// Some handling code here.
...
// App finalize.
ClientAPI.CloseAllTransmissionLines();

Links

Projects

Related pages