Esempio n. 1
0
        private async Task StartSdkAsync()
        {
            if (!_sdkService.IsServerStarted)
            {
                _sdkService.SetSdkServerPath(Path.Combine(Environment.CurrentDirectory, "sdk"));

                IVisualizeShell visualizeShellService =
                    IoC.Get <IVisualizeShell>();

                visualizeShellService.StartingSdk();

                UserInfo userInfo = IoC.Get <UserInfo>();

                AsyncCallbackMsg startResult = await _sdkService.StartServerViaAppKey(userInfo.AppKey, userInfo.OpenId,
                                                                                      userInfo.GetNube(), "http://xmeeting.butel.com/nps_x1");

                if (startResult.Status != 0)
                {
                    visualizeShellService.FinishStartingSdk(false, startResult.Message);
                }
                else
                {
                    visualizeShellService.FinishStartingSdk(true, Messages.InfoMeetingSdkStarted);
                    AsyncCallbackMsg setFillModeResult = _sdkService.SetFillMode(0);

                    HasErrorMsg(setFillModeResult.Status.ToString(), Messages.WarningSetFillModeFailed);
                }

                //Thread.Sleep(1000);
            }
        }