public static async ETTask <Invite> CreateInvite(this InviteComponent self, InviteData inviteData) { Invite invite = ComponentFactory.CreateWithId <Invite>(IdGenerater.GenerateId()); invite.SetData(inviteData); self._Create(invite); await self.MemorySync.Create(invite); return(invite); }