CreateLivenessSessionContent Class
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.
Request model for creating liveness session.
public class CreateLivenessSessionContent : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.CreateLivenessSessionContent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.CreateLivenessSessionContent>
type CreateLivenessSessionContent = class
interface IJsonModel<CreateLivenessSessionContent>
interface IPersistableModel<CreateLivenessSessionContent>
Public Class CreateLivenessSessionContent
Implements IJsonModel(Of CreateLivenessSessionContent), IPersistableModel(Of CreateLivenessSessionContent)
- Inheritance
-
CreateLivenessSessionContent
- Implements
Create |
Initializes a new instance of CreateLivenessSessionContent. |
Auth |
Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600. |
Device |
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. |
Device |
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. |
Enable |
Whether or not store the session image. |
Liveness |
Type of liveness mode the client should follow. |
Liveness |
The model version used for liveness classification. This is an optional parameter, and if this is not specified, then the latest supported model version will be chosen. |
Send |
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. |
IJson |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJson |
Writes the model to the provided Utf8JsonWriter. |
IPersistable |
Converts the provided BinaryData into a model. |
IPersistable |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistable |
Writes the model into a BinaryData. |
Product | Versions |
---|---|
Azure SDK for .NET | Preview |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: