private async void ResponseMakeRoom(Req0008 req, Res0008 res) { await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { Packet0008Received?.Invoke(this, new Packet0008ReceivedEventArgs(req, res)); }); }
public async void RequestMakeRoom(String id, String room_title, String access_pw, Double max_join_cnt) { Req0008 req = new Req0008() { UserID = id, Room = new RoomInfo() { RoomTitle = room_title, AccessPassword = access_pw, MaxJoinCount = System.Convert.ToInt32(max_join_cnt) } }; Res0008 res = await GGTHubProxy.Invoke <Res0008>("RequestMakeRoom", req); Packet0008Received?.Invoke(this, new Packet0008ReceivedEventArgs(req, res)); }