public override async Task OnActivateAsync() { this.State = await StateStore.GetByIdAsync(GrainId); if (this.State == null) { IsNew = true; await InitState(); } }
protected virtual async Task ReadSnapshotAsync() { this.State = await StateStore.GetByIdAsync(GrainId); if (this.State == null) { IsNew = true; await InitState(); } storageVersion = this.State.Version; }
protected virtual async Task ReadSnapshotAsync() { State = await StateStore.GetByIdAsync(GrainId); if (State == null) { IsNew = true; await CreateState(); } StateStorageVersion = State.Version; }