Condividi tramite


AttestationModelFactory.AttestationResponse<T> Method

Definition

Create an instance of an AttestationResponse object for mocking purposes.

public static Azure.Security.Attestation.AttestationResponse<T> AttestationResponse<T> (Azure.Response response, Azure.Security.Attestation.AttestationToken token, T body = default) where T : class;
static member AttestationResponse : Azure.Response * Azure.Security.Attestation.AttestationToken * 'T -> Azure.Security.Attestation.AttestationResponse<'T (requires 'T : null)> (requires 'T : null)
Public Shared Function AttestationResponse(Of T As Class) (response As Response, token As AttestationToken, Optional body As T = Nothing) As AttestationResponse(Of T)

Type Parameters

T

Type of the token body.

Parameters

response
Response

Response type associated with the underlying response.

token
AttestationToken

Attestation Token to be included in the response.

body
T

Optional body instance. If no body is provided, the body of the token is used.

Returns

An Azure.Security.Attestation.AttestationResponse object.

Remarks

The body parameter is provided to create an attestation response whose Value property is something other than the body of the token.

Applies to