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);
            }
        }