/// <summary> /// Add users to a lab /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labAccountName'> /// The name of the lab Account. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='addUsersPayload'> /// Payload for Add Users operation on a Lab. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddUsersAsync(this ILabsOperations operations, string resourceGroupName, string labAccountName, string labName, AddUsersPayload addUsersPayload, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddUsersWithHttpMessagesAsync(resourceGroupName, labAccountName, labName, addUsersPayload, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Add users to a lab /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labAccountName'> /// The name of the lab Account. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='addUsersPayload'> /// Payload for Add Users operation on a Lab. /// </param> public static void AddUsers(this ILabsOperations operations, string resourceGroupName, string labAccountName, string labName, AddUsersPayload addUsersPayload) { operations.AddUsersAsync(resourceGroupName, labAccountName, labName, addUsersPayload).GetAwaiter().GetResult(); }