private async Task GotoMeeting(int meetingId) { var curUser = IoC.Get <UserInfo>(); if (curUser.UserId == CurLessonDetail.MasterUserId) { _sdkService.CreatorPhoneId = curUser.GetNube(); } var lessonDetail = IoC.Get <LessonDetail>(); lessonDetail.CloneLessonDetail(CurLessonDetail); _sdkService.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 _interactiveWithouLiveContentView.Dispatcher.BeginInvoke(new Action(() => { IMeetingTrigger meetingService = IoC.Get <IMeetingTrigger>(); meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent; meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent; meetingService.StartMeeting(); })); }
//methods private async Task GotoMeetingViewAsync() { var lessonDetail = IoC.Get <LessonDetail>(); lessonDetail.CloneLessonDetail(new LessonDetail()); var attendees = IoC.Get <List <UserInfo> >(); attendees.Clear(); await _meetingContentView.Dispatcher.BeginInvoke(new System.Action(() => { //Window meetingView = _container.ResolveNamed<Window>("MeetingView", new TypedParameter(typeof(int), meetingId)); IMeetingTrigger meetingService = IoC.Get <IMeetingTrigger>(); meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent; meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent; meetingService.StartMeeting(); })); }