AIVisionFaceModelFactory.CreateLivenessSessionContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CreateLivenessSessionContent.
public static Azure.AI.Vision.Face.CreateLivenessSessionContent CreateLivenessSessionContent (Azure.AI.Vision.Face.LivenessOperationMode livenessOperationMode = default, bool? sendResultsToClient = default, bool? deviceCorrelationIdSetInClient = default, string deviceCorrelationId = default, int? authTokenTimeToLiveInSeconds = default);
static member CreateLivenessSessionContent : Azure.AI.Vision.Face.LivenessOperationMode * Nullable<bool> * Nullable<bool> * string * Nullable<int> -> Azure.AI.Vision.Face.CreateLivenessSessionContent
Public Shared Function CreateLivenessSessionContent (Optional livenessOperationMode As LivenessOperationMode = Nothing, Optional sendResultsToClient As Nullable(Of Boolean) = Nothing, Optional deviceCorrelationIdSetInClient As Nullable(Of Boolean) = Nothing, Optional deviceCorrelationId As String = Nothing, Optional authTokenTimeToLiveInSeconds As Nullable(Of Integer) = Nothing) As CreateLivenessSessionContent
Parameters
- livenessOperationMode
- LivenessOperationMode
Type of liveness mode the client should follow.
Whether or not to allow a '200 - Success' response body to be sent to the client, which may be undesirable for security reasons. Default is false, clients will receive a '204 - NoContent' empty body response. Regardless of selection, calling Session GetResult will always contain a response body enabling business logic to be implemented.
Whether or not to allow client to set their own 'deviceCorrelationId' via the Vision SDK. Default is false, and 'deviceCorrelationId' must be set in this request body.
- deviceCorrelationId
- String
Unique Guid per each end-user device. This is to provide rate limiting and anti-hammering. If 'deviceCorrelationIdSetInClient' is true in this request, this 'deviceCorrelationId' must be null.
Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600.
Returns
A new CreateLivenessSessionContent instance for mocking.
Applies to
Azure SDK for .NET