I use a StatefulService
with a IReliableDictionary
.
Currently, I call StateManager.GetOrAddAsync<IReliableDictionary>
everywhere I need this dictionary.
Is it best practice to call one time only StateManager.GetOrAddAsync<IReliableDictionary>
in the OnOpenAsync
method of StatefulService
and to store the return in a member ?