Example #1
0
        private void StartApplicationCompleted(object sender, StartApplicationCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                OnError(e.Error);
                return;
            }
            ApplicationId = e.Result.AppIdentifier;

            Platform.Log(LogLevel.Info, "Application start completed: {0}", ApplicationId);

            ThrottleSettings.Default.PropertyChanged += ThrottleSettingsPropertyChanged;

            //TODO: put the key in some assembly that can be shared with the server-side code
            _proxy.SetPropertyAsync(new SetPropertyRequest
            {
                ApplicationId = ApplicationId,
                Key           = "DynamicImageQualityEnabled",
                Value         = ThrottleSettings.Default.EnableDynamicImageQuality.ToString()
            });

            if (ApplicationStarted != null)
            {
                ApplicationStarted(this, e);
            }
        }
        private void StartApplicationCompleted(object sender, StartApplicationCompletedEventArgs e)
        {
            StartPolling();

            _outboundThread      = new Thread(ignore => ProcessOutboundQueue());
            _outboundThread.Name = String.Format("Outbound Thread[{0}]", _outboundThread.ManagedThreadId);
            _outboundThread.Start();
        }
Example #3
0
        private void StartApplicationCompleted(object sender, StartApplicationCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                OnError(e.Error);
                return;
            }
            ApplicationId = e.Result.AppIdentifier;

            Platform.Log(LogLevel.Info, "Application start completed: {0}", ApplicationId);

            ThrottleSettings.Default.PropertyChanged += ThrottleSettingsPropertyChanged;

            //TODO: put the key in some assembly that can be shared with the server-side code
            _proxy.SetPropertyAsync(new SetPropertyRequest
            {
                ApplicationId = ApplicationId,
                Key = "DynamicImageQualityEnabled",
                Value = ThrottleSettings.Default.EnableDynamicImageQuality.ToString()
            });

            if (ApplicationStarted != null) ApplicationStarted(this, e);
        }
Example #4
0
	    private void StartApplicationCompleted(object sender, StartApplicationCompletedEventArgs e)
        {
            StartPolling();

            _outboundThread = new Thread(ignore => ProcessOutboundQueue());
            _outboundThread.Name = String.Format("Outbound Thread[{0}]", _outboundThread.ManagedThreadId);
            _outboundThread.Start();
        }