Exemple #1
0
        private async Task HandleOpenSolutionAsync(object sender = null, EventArgs e = null)
        {
            try
            {
                Options options = await Options.GetLiveInstanceAsync();

                if (!options.PullOnSolutionOpen)
                {
                    return;
                }

                await JoinableTaskFactory.SwitchToMainThreadAsync();

                PullCommand.Execute(this);
            }
            catch (Exception ex)
            {
                Debug.Write(ex);
            }
        }
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await PullCommand.InitializeAsync(this);
        }