Skip to content

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

welshronaldo edited this page May 30, 2022 · 4 revisions

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

Store a value which can be retrieved with a token

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

Clone this wiki locally