WindowsPhone.Conference.WebRTC.Signalling.Start C# (CSharp) Method

Start() public method

public Start ( Action callback ) : void
callback Action
return void
        public void Start(Action<string> callback)
        {
            WebSyncClient = new Client(WebSyncServerUrl);
            //WebSyncClient.DomainKey = Guid.Parse("5fb3bdc2-ea34-11dd-9b91-3e6b56d89593"); // WebSync On-Demand

            // Create a persistent connection to the server.
            WebSyncClient.Connect(new ConnectArgs
            {
                OnFailure = (e) =>
                {
                    callback(string.Format("Could not connect to WebSync. {0}", e.Exception.Message));
                    e.Retry = false;
                },
                OnSuccess = (e) =>
                {
                    callback(null);
                }
            });
        }

Usage Example

Ejemplo n.º 1
0
 public void StartSignalling(Action<string> callback)
 {
     Signalling = new Signalling(WebSyncServerUrl);
     Signalling.Start(callback);
 }
All Usage Examples Of WindowsPhone.Conference.WebRTC.Signalling::Start