Skip to content

ServerAPI

ElbyFross edited this page Jan 9, 2020 · 1 revision

Remarks

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

  • Located at the PipesProvider.Server namespace.
  • Provides an API for handling tasks related to server transmission controllers:
    • Implements a base unified ServerLoop thats has a base server logic and used by all controllers.
    • Implements expire features for controller that cause restart of opened server pipes.
    • Manages a server's stop operation.

Examples

Finalizing a server app

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

You can close all started controllers by calling by calling the StopAllServers method.

C#

// Starting an app and establishing transmission controllers.
...
// Some handling code here.
...
// App finalize.
ServerAPI.StopAllServers();

Links

Related pages