/// <summary>
 /// Update source control for user.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.WebSites.ISourceControlOperations.
 /// </param>
 /// <param name='name'>
 /// Required. The name of the source control (can be: GitHub,
 /// Bitbucket, CodePlex, Dropbox)
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Source Control
 /// operation.
 /// </param>
 /// <returns>
 /// The update source control operation response.
 /// </returns>
 public static Task<SourceControlUpdateResponse> UpdateAsync(this ISourceControlOperations operations, string name, SourceControlUpdateParameters parameters)
 {
     return operations.UpdateAsync(name, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Update source control for user.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.WebSites.ISourceControlOperations.
 /// </param>
 /// <param name='name'>
 /// Required. The name of the source control (can be: GitHub,
 /// Bitbucket, CodePlex, Dropbox)
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Source Control
 /// operation.
 /// </param>
 /// <returns>
 /// The update source control operation response.
 /// </returns>
 public static SourceControlUpdateResponse Update(this ISourceControlOperations operations, string name, SourceControlUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ISourceControlOperations)s).UpdateAsync(name, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }