/// <summary> /// Divide candidate faces into groups based on face similarity. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='faceIds'> /// Array of candidate faceId created by Face - Detect. The maximum is 1000 /// faces /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GroupResult> GroupAsync(this IFaceOperations operations, IList <System.Guid> faceIds, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GroupWithHttpMessagesAsync(faceIds, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }