/// <summary> /// Verify whether two faces belong to a same person. Compares a face Id with a /// Person Id /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='faceId'> /// FaceId of the face, comes from Face - Detect /// </param> /// <param name='personId'> /// Specify a certain person in a person group or a large person group. /// personId is created in PersonGroup Person - Create or LargePersonGroup /// Person - Create. /// </param> /// <param name='personGroupId'> /// Using existing personGroupId and personId for fast loading a specified /// person. personGroupId is created in PersonGroup - Create. Parameter /// personGroupId and largePersonGroupId should not be provided at the same /// time. /// </param> /// <param name='largePersonGroupId'> /// Using existing largePersonGroupId and personId for fast loading a specified /// person. largePersonGroupId is created in LargePersonGroup - Create. /// Parameter personGroupId and largePersonGroupId should not be provided at /// the same time. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VerifyResult> VerifyFaceToPersonAsync(this IFaceOperations operations, System.Guid faceId, System.Guid personId, string personGroupId = default(string), string largePersonGroupId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.VerifyFaceToPersonWithHttpMessagesAsync(faceId, personId, personGroupId, largePersonGroupId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }