コード例 #1
0
        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();
            }));
        }
コード例 #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 _interactiveWithouLiveContentView.Dispatcher.BeginInvoke(new Action(() =>
            {
                IMeetingTrigger meetingService = IoC.Get <IMeetingTrigger>();

                meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent;

                meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent;

                meetingService.StartMeeting();
            }));
        }
コード例 #3
0
        //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();
            }));
        }