Skip to content

DurableStateManagerExtensions Methods

Provides convenient access to the built-in durable state contracts.

GetOrAddDictionary(IDurableStateManager, string)

staticextension
View source
public static IDurableDictionary<TKey, TValue> GetOrAddDictionary<TKey, TValue>(this IDurableStateManager manager, string name)
Gets or creates a named durable dictionary.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named dictionary instance.

GetOrAddList(IDurableStateManager, string)

staticextension
View source
public static IDurableList<T> GetOrAddList<T>(this IDurableStateManager manager, string name)
Gets or creates a named durable list.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named list instance.

GetOrAddPersistentState(IDurableStateManager, string)

staticextension
View source
public static IPersistentState<T> GetOrAddPersistentState<T>(this IDurableStateManager manager, string name)
Gets or creates named journal-backed persistent state.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named persistent state instance.

GetOrAddQueue(IDurableStateManager, string)

staticextension
View source
public static IDurableQueue<T> GetOrAddQueue<T>(this IDurableStateManager manager, string name)
Gets or creates a named durable queue.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named queue instance.

GetOrAddSet(IDurableStateManager, string)

staticextension
View source
public static IDurableSet<T> GetOrAddSet<T>(this IDurableStateManager manager, string name)
Gets or creates a named durable set.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named set instance.

GetOrAddTaskCompletionSource(IDurableStateManager, string)

staticextension
View source
public static IDurableTaskCompletionSource<T> GetOrAddTaskCompletionSource<T>(this IDurableStateManager manager, string name)
Gets or creates a named durable task completion source.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named task completion source instance.

GetOrAddValue(IDurableStateManager, string)

staticextension
View source
public static IDurableValue<T> GetOrAddValue<T>(this IDurableStateManager manager, string name)
Gets or creates a named durable value.

Parameters

managerIDurableStateManager
The owning manager.
namestring
The stable state name.

Returns

The named value instance.