private static void BindNewInstance() { try { var client = LyncClient.GetClient(); var automation = LyncClient.GetAutomation(); instance = new AppController(client, automation); } catch (ClientNotFoundException) { throw new InvalidStateException("No Skype / Lync app running"); } }
public async Task <object> OnClientStateChange(dynamic kwargs) { AppController.Instance(false).OnClientStateChange(kwargs.callback); return(null); }
public async Task <object> OnDisconnect(dynamic kwargs) { AppController.Instance(false).OnDisconnect(kwargs.callback); return(null); }
public async Task <object> Mute(dynamic kwargs) { AppController.Instance().MuteAll(kwargs.state); return(null); }
public async Task <object> HangupAll(dynamic kwargs) { AppController.Instance().HangupAll(); return(null); }
public async Task <object> Join(dynamic kwargs) { AppController.Instance().JoinMeeting(kwargs.url, kwargs.fullscreen, kwargs.display); return(null); }
public async Task <object> Call(dynamic kwargs) { AppController.Instance().Call(kwargs.uri, kwargs.fullscreen, kwargs.display); return(null); }
public async Task <object> SignOut(dynamic kwargs) { AppController.Instance().SignOut(); return(null); }
public async Task <object> SignIn(dynamic kwargs) { AppController.Instance(false).SignIn(kwargs.user, kwargs.password); return(null); }
public async Task <object> GetClientState(dynamic kwargs) { return(AppController.Instance(false).GetClientState()); }
public async Task <object> GetActiveUser(dynamic kwargs) { return(AppController.Instance().GetActiveUser()); }