Exemple #1
0
        private void TryStartMultiscreenApp()
        {
            Logger.Instance.LogMessageFormat("[SmartView2][MultiScreenController]TryStartMultiscreenApp started...");
            //Logger.Instance.LogMessageFormat("[SmartView2][MultiScreenController]TryStartMultiscreenApp httpServer IsWorking: {0}, LoadState: {1}", (object)(bool)(this.httpServer.IsWorking ? 1 : 0), (object)this.LoadState.ToString());
            if (!this.httpServer.IsWorking || this.LoadState != LoadState.Stoped && this.LoadState != LoadState.Failed)
            {
                return;
            }
            this.LoadState = LoadState.Loading;
            GetDialDeviceRequest dialDeviceRequest = new GetDialDeviceRequest(this.deviceUri, (DeviceAsyncResult <Device>) this.deviceResultByDevice);

            Logger.Instance.LogMessageFormat("[SmartView2][MultiScreenController]TryStartMultiscreenApp getDevice run.");
            dialDeviceRequest.run();
        }
        private void TryStartMultiscreenApp()
        {
            Console.WriteLine("TryStartMultiscreenApp started...");
            //Console.WriteLine("TryStartMultiscreenApp httpServer IsWorking: {0}, LoadState: {1}", (object)(bool)(this.httpServer.IsWorking ? 1 : 0), (object)this.LoadState.ToString());
            if (!this.httpServer.IsWorking || this.LoadState != LoadState.Stoped && this.LoadState != LoadState.Failed)
            {
                return;
            }
            this.LoadState = LoadState.Loading;
            GetDialDeviceRequest dialDeviceRequest = new GetDialDeviceRequest(this.deviceUri, (DeviceAsyncResult <Device>) this.deviceResultByDevice);

            Console.WriteLine("TryStartMultiscreenApp getDevice run.");
            dialDeviceRequest.run();
        }