public void Initialize() { this.luxaforClient = this.InitializeLuxaforClient(); this.slackAgent = this.InitializeSlackAgent(this.slackToken); this.slackAgent.Changed += this.OnSlackChanged; this.OnSlackChanged(); }
private LuxaforClient InitializeLuxaforClient() { var client = new LuxaforClient(); if (client.Initialize() == false) { throw new Exception("Luxafor device initialization failed"); } if (client.Test()) { return client; } else { throw new Exception("Luxafor communication issue. Please unplug/replug the Luxafor and restart the application"); } }
private LuxaforClient InitializeLuxaforClient() { var client = new LuxaforClient(); if (client.Initialize() == false) { throw new Exception("Luxafor device initialization failed"); } if (client.Test()) { return(client); } else { throw new Exception("Luxafor communication issue. Please unplug/replug the Luxafor and restart the application"); } }