private async Task GotoMeeting(int meetingId) { var curUser = IoC.Get <UserInfo>(); if (curUser.UserId == CurLessonDetail.MasterUserId) { GlobalData.AddOrUpdate(CacheKey.HostId, _windowManager.Participant.Account.AccountId); } var lessonDetail = IoC.Get <LessonDetail>(); lessonDetail.CloneLessonDetail(CurLessonDetail); GlobalData.AddOrUpdate(CacheKey.MeetingId, meetingId); await _interactiveWithouLiveContentView.Dispatcher.BeginInvoke(new Action(() => { IMeetingTrigger meetingService = IoC.Get <IMeetingTrigger>(); meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent; meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent; meetingService.StartMeeting(); })); }
private async Task GotoMeeting(int meetingId) { var curUser = IoC.Get <UserInfo>(); if (curUser.UserId == CurLessonDetail.MasterUserId) { GlobalData.AddOrUpdate(CacheKey.HostId, _windowManager.Participant.Account.AccountId); } var lessonDetail = IoC.Get <LessonDetail>(); lessonDetail.CloneLessonDetail(CurLessonDetail); GlobalData.AddOrUpdate(CacheKey.MeetingId, meetingId); await _discussionContentView.Dispatcher.BeginInvoke(new Action(() => { DiscussionClassView discussionClassView = new DiscussionClassView(MeetingService_StartMeetingCallbackEvent, MeetingService_ExitMeetingCallbackEvent); discussionClassView.Show(); //IMeeting meetingService = IoC.Get<IMeeting>(); //meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent; //meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent; //meetingService.StartMeeting(); })); }