/// <summary> /// 初始化状态数据 /// </summary> /// <returns></returns> protected override async Task <DictState> OnReadFromDbAsync() { var dbResult = await _dictRepository.GetAllAsync(oo => oo.DataType == this.GrainId, isMaster : false); DictState state = new DictState { Balance = dbResult.ToList() }; return(state); }