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);
}
});
}