Skip to content

Pact Web TempDataService TempDataService StoreOnKeyToken T (string T System Text Json JsonSerializerOptions)

welshronaldo edited this page May 30, 2022 · 4 revisions

TempDataService.StoreOnKeyToken<T>(string, T, JsonSerializerOptions) Method

Store a value which can be retrieved with a token

public string StoreOnKeyToken<T>(string key, T value, System.Text.Json.JsonSerializerOptions jsonOptions=null)
    where T : class;

Type parameters

T

Parameters

key System.String
Separator key

value T
Item to be cached

jsonOptions System.Text.Json.JsonSerializerOptions

Returns

System.String

Implements StoreOnKeyToken(string, T, JsonSerializerOptions)

Clone this wiki locally