Exemple #1
0
        private async Task GotoMeeting(int meetingId)
        {
            var curUser = DependencyResolver.Current.Container.Resolve <UserInfo>();

            if (curUser.UserId == CurLessonDetail.MasterUserId)
            {
                _sdkService.SetTeacherPhoneId(curUser.GetNube());
            }

            var lessonDetail = DependencyResolver.Current.Container.Resolve <LessonDetail>();

            lessonDetail.CloneLessonDetail(CurLessonDetail);

            _sdkService.SetMeetingId(meetingId);

            await _interactiveContentView.Dispatcher.BeginInvoke(new Action(() =>
            {
                IMeeting meetingService = DependencyResolver.Current.Container.Resolve <IMeeting>();

                meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent;

                meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent;

                meetingService.StartMeeting();
            }));
        }
        //methods
        private async Task GotoMeetingViewAsync()
        {
            var lessonDetail = DependencyResolver.Current.Container.Resolve <LessonDetail>();

            lessonDetail.CloneLessonDetail(new LessonDetail());

            var attendees = DependencyResolver.Current.Container.Resolve <List <UserInfo> >();

            attendees.Clear();

            await _meetingContentView.Dispatcher.BeginInvoke(new Action(() =>
            {
                //Window meetingView = _container.ResolveNamed<Window>("MeetingView", new TypedParameter(typeof(int), meetingId));
                IMeeting meetingService = DependencyResolver.Current.Container.Resolve <IMeeting>();

                meetingService.StartMeetingCallbackEvent += MeetingService_StartMeetingCallbackEvent;

                meetingService.ExitMeetingCallbackEvent += MeetingService_ExitMeetingCallbackEvent;

                meetingService.StartMeeting();
            }));
        }