/// <summary> /// Deletes the specified registration assignment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// Id of the source subscription. /// </param> /// <param name='registratonAssignmentId'> /// Guid of the registration assignment. /// </param> /// <param name='apiVersion'> /// The API version to use for this operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RegistrationAssignment> DeleteAsync(this IRegistrationAssignmentsOperations operations, string scope, string registratonAssignmentId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(scope, registratonAssignmentId, apiVersion, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes the specified registration assignment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// Scope of the resource. /// </param> /// <param name='registrationAssignmentId'> /// Guid of the registration assignment. /// </param> /// <param name='apiVersion'> /// The API version to use for this operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IRegistrationAssignmentsOperations operations, string scope, string registrationAssignmentId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(scope, registrationAssignmentId, apiVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); }