/// <summary> /// Exchange code for GitHub access token for AppService CLI /// </summary> /// <remarks> /// Description for Exchange code for GitHub access token for AppService CLI /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='code'> /// Code string to exchange for Github Access token /// </param> /// <param name='state'> /// State string used for verification. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AppserviceGithubToken> GenerateGithubAccessTokenForAppserviceCLIAsyncAsync(this IWebSiteManagementClient operations, string code, string state, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GenerateGithubAccessTokenForAppserviceCLIAsyncWithHttpMessagesAsync(code, state, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }