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 _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();
            }));
        }
コード例 #2
0
        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();
            }));
        }