예제 #1
0
        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);
        }