public void Connect(string Server, string Username, string Password, string Email = null, string SiteName = null, bool verify = true) { Loaded = false; var settings = new WebexClientSettings { SiteName = SiteName, Server = Server, User = Username, Password = Password, Email = Email }; if (verify) { var tempClient = new WebexClient(settings); var testResults = tempClient.Execute(client => { var res = client.getUser(new getUser { webExId = Username }); }); if (testResults.Exception != null) { throw testResults.Exception; } else { Client = tempClient; Loaded = true; } } else { Client = new WebexClient(settings); Loaded = true; } }
public void Disconnect() { Client = null; Loaded = false; }