C# Класс SyncanoSyncServer.Net.SyncServer

Class makes possible to connect to Syncano Sync Server over Tcp. Like in class Syncano, in Rest Api module, you can manage your Syncano Instance using it, but also it provides api for subscribing and listening for real time notifications that inform you, what is happening with your Syncano Instance right now. The Sync Server is meant to facilitate notification/subscription processing. To control what you subscribe to or what you want to send, refer to the notification and subscription API documentation. Once you are subscribed to and connected to the Sync Server, you will start receiving real-time notifications.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Start ( ) : Task

Starts SyncServer and connects it to Syncano Sync Server.

Stop ( ) : void

Disconnects SyncServer.

SyncServer ( string instanceName, string api ) : System

Creates SyncServer object.

Описание методов

Start() публичный Метод

Starts SyncServer and connects it to Syncano Sync Server.
public Start ( ) : Task
Результат Task

Stop() публичный Метод

Disconnects SyncServer.
public Stop ( ) : void
Результат void

SyncServer() публичный Метод

Creates SyncServer object.
public SyncServer ( string instanceName, string api ) : System
instanceName string Name of Syncano Instance.
api string Api Key of Syncano Instance.
Результат System