/// <summary> /// Gets source control token /// </summary> /// <remarks> /// Gets source control token /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sourceControlType'> /// Type of source control /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SourceControl> GetSourceControlAsync(this IWebSiteManagementClient operations, string sourceControlType, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSourceControlWithHttpMessagesAsync(sourceControlType, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }