Table of Contents

Method DeserializeJsonAsync

Namespace
Kepware.Api.ClientHandler
Assembly
Kepware.Api.dll

DeserializeJsonAsync<K>(HttpResponseMessage, CancellationToken)

protected Task<K?> DeserializeJsonAsync<K>(HttpResponseMessage httpResponse, CancellationToken cancellationToken = default) where K : BaseEntity, new()

Parameters

httpResponse HttpResponseMessage
cancellationToken CancellationToken

Returns

Task<K>

Type Parameters

K

DeserializeJsonAsync<K>(HttpResponseMessage, JsonTypeInfo<K>, CancellationToken)

protected Task<K?> DeserializeJsonAsync<K>(HttpResponseMessage httpResponse, JsonTypeInfo<K> jsonTypeInfo, CancellationToken cancellationToken = default)

Parameters

httpResponse HttpResponseMessage
jsonTypeInfo JsonTypeInfo<K>
cancellationToken CancellationToken

Returns

Task<K>

Type Parameters

K