public SearchGrain( ReferenceDataService searchDatabase, IGrainFactory grainFactory) { _searchDatabase = searchDatabase; _grainFactory = grainFactory; }
public DictionaryEntryGrain( // Inject some storage. We will use the "definitions" storage provider configured in Program.cs // and we will call this piece of state "def", to distinguish it from any other state we might want to have [PersistentState(stateName: "def", storageName: "definitions")] IPersistentState <DictionaryEntryState> defs, ReferenceDataService referenceDataService) { _state = defs; _referenceDataService = referenceDataService; }