/// <summary> /// Updates source control token /// </summary> /// <remarks> /// Updates 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='requestMessage'> /// Source control token information /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SourceControl> UpdateSourceControlAsync(this IWebSiteManagementClient operations, string sourceControlType, SourceControl requestMessage, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateSourceControlWithHttpMessagesAsync(sourceControlType, requestMessage, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }