Skip to content

DurableGrain.GetOrCreateState(string)

GetOrCreateState(string)

View source
protected TState GetOrCreateState<TState>(string name)
Gets the registered state with the specified name or creates it using the grain service provider.

Parameters

namestring
The name used to register the state.

Returns

The existing or newly created state.