示例#1
0
        public void Initialize()
        {
            this.luxaforClient = this.InitializeLuxaforClient();
              this.slackAgent = this.InitializeSlackAgent(this.slackToken);

              this.slackAgent.Changed += this.OnSlackChanged;
              this.OnSlackChanged();
        }
示例#2
0
        public void Initialize()
        {
            this.luxaforClient = this.InitializeLuxaforClient();
            this.slackAgent    = this.InitializeSlackAgent(this.slackToken);

            this.slackAgent.Changed += this.OnSlackChanged;
            this.OnSlackChanged();
        }
示例#3
0
        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");
              }
        }
示例#4
0
        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");
            }
        }