Table of Contents

Enum AccessPointPolicy

Namespace
ViiSync.AccountApi
Assembly
ViiSync.AccountApi.dll

Which of the access points the server advertises (after login, and whenever its access servers change) a client adds to AccessPoints — the candidates of its next connect and automatic reconnect. Only addresses in the client's own transport family are ever added (TLS addresses for a tls:// client, WebSocket URLs for a ws:// / wss:// client).

public enum AccessPointPolicy

Fields

Auto = 0

The default: use them only when this client connects through access servers — it was given an access-point list (ViiSyncAccountApi(ulong, string, IEnumerable<Uri>)) or a tls:// address, or the address it connected to (host and port) is one the server advertises. A client connected straight to the server (for example wss://server.example.com/ws) keeps exactly its own address and reconnects to it.

Always = 1

Always use them, also on a client connected straight to the server: its next reconnect may go through an access server.

Never = 2

Never: connect only to the addresses given here.