Skip to content

Pact Web TempDataService TempDataService

welshronaldo edited this page May 30, 2022 · 6 revisions

TempDataService Class

A wrapper service around ITempDataDictionaryFactory to make it easier to store objects

public class TempDataService :
Pact.Web.TempDataService.ITempDataService

Inheritance System.Object 🡒 TempDataService

Implements ITempDataService

Methods
Clear() Clears the Temp Data Dictionary
Get<T>(string, JsonSerializerOptions) Gets a item from the Temp Data Dictionary
GetFromKeyToken<T>(string, string, JsonSerializerOptions) Gets a value cached from a token
Set<T>(string, T, JsonSerializerOptions) Sets item in Temp Data Dictionary
StoreOnKeyToken<T>(string, T, JsonSerializerOptions) Store a value which can be retrieved with a token
Clone this wiki locally