GoogleCloudExtension.OauthLoginFlow.OAuthLoginFlowWindow.PromptUser C# (CSharp) Method

PromptUser() public static method

public static PromptUser ( OAuthCredentials credentials, IEnumerable scopes ) : string
credentials GoogleCloudExtension.OAuth.OAuthCredentials
scopes IEnumerable
return string
        public static string PromptUser(OAuthCredentials credentials, IEnumerable<string> scopes)
        {
            var dialog = new OAuthLoginFlowWindow(credentials, scopes);
            dialog.ShowModal();
            return dialog.ViewModel.RefreshCode;
        }