public Task <IChatRoomEntry> GetIChatRoomEntry() { if (m_IChatRoomEntry == null) { m_IChatRoomEntry = GrainFactory.GetGrain <IChatRoomEntry>(0); } return(Task.FromResult(m_IChatRoomEntry)); }
public Task <bool> Init() { var bret = true; m_ChatRoomInfo.Id = this.GetPrimaryKeyString(); m_ChatRoomInfo.Ls_ChatUser.Clear(); m_ChatRoomInfo.ChatRoom_State = EChatRoom_State.Active; this.m_IChatRoomEntry = GrainFactory.GetGrain <IChatRoomEntry>(0); return(Task.FromResult(bret)); }