Пример #1
0
        async Task <BlogInfo[]> FetchGithubBranches()
        {
            var githubApi = new GithubApi();

            if (string.IsNullOrEmpty(CurrentBlog.Token))
            {
                var githubLogin = new GithubLogin();
                githubLogin.ShowDialog();
                CurrentBlog.Token = await githubApi.GetToken(githubLogin.Code);
            }

            return(await githubApi.FetchBranches(CurrentBlog.Token, CurrentBlog.Username, CurrentBlog.WebAPI));
        }
        async Task<BlogInfo[]> FetchGithubBranches()
        {
            var githubApi = new GithubApi();
            if (string.IsNullOrEmpty(CurrentBlog.Token))
            {
                var githubLogin = new GithubLogin();
                githubLogin.ShowDialog();
                CurrentBlog.Token = await githubApi.GetToken(githubLogin.Code);
            }

            return await githubApi.FetchBranches(CurrentBlog.Token, CurrentBlog.Username, CurrentBlog.WebAPI);
        }