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

            SignalRSelfHost.SetUrl(url);
            SignalRSelfHost.Start();
        }
Exemplo n.º 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());
        }