Beispiel #1
0
        public void Execute()
        {
            string url = EngineContext.Current.Resolve <ILiveChatService>().GetSignaRStartPath();

            SignalRSelfHost.SetUrl(url);
            SignalRSelfHost.Start();
        }
Beispiel #2
0
        public ActionResult Configure(LiveChatModel model)
        {
            if (!ModelState.IsValid)
            {
                return(Configure());
            }

            //save settings
            _liveChatSettings.SelectedEmailAccountId = model.SelectedEmailAccountId;
            _liveChatSettings.SignalRPort            = model.SignalRPort;
            _settingService.SaveSetting(_liveChatSettings);
            string path = _liveChatService.GetSignaRStartPath();

            SignalRSelfHost.SetUrl(path);
            SignalRSelfHost.Restart();
            //redisplay the form
            return(Configure());
        }