C# Class Foundation.Server.Infrastructure.OrtcHelper

ORTC server side API that contains ORTC factories as plug-ins.
Mostrar archivo Open project: NVentimiglia/Unity3d-Foundation

Public Methods

Method Description
GetClusterServer ( string url, String applicationKey ) : Task

Gets the cluster server.

PostAuthentication ( string authenticationToken, bool authenticationTokenIsPrivate, string applicationKey, int timeToLive, string privateKey, string[]>.Dictionary permissions ) : Task

Saves the authentication token channels permissions in the ORTC server.

Method Details

GetClusterServer() public static method

Gets the cluster server.
public static GetClusterServer ( string url, String applicationKey ) : Task
url string
applicationKey String
return Task

PostAuthentication() public static method

Saves the authentication token channels permissions in the ORTC server.
public static PostAuthentication ( string authenticationToken, bool authenticationTokenIsPrivate, string applicationKey, int timeToLive, string privateKey, string[]>.Dictionary permissions ) : Task
authenticationToken string Authentication Token which is generated by the application server, for instance a unique session ID.
authenticationTokenIsPrivate bool Indicates whether the authentication token is private (1) or not (0).
applicationKey string Application Key that was provided to you together with the ORTC service purchasing.
timeToLive int The authentication token time to live, in other words, the allowed activity time (in seconds).
privateKey string The private key provided to you together with the ORTC service purchasing.
permissions string[]>.Dictionary The channels and their permissions (w: write/read or r: read, case sensitive).
return Task