Beispiel #1
0
        public RegistryService()
        {
            var req = HttpContext.Current.Request;
              var path = req.Url.Scheme + "://" + req.Url.Authority + req.ApplicationPath;

              _studentService = new StudentService(new DataClassesDataContext(),
            new HubConnection(path));
        }
Beispiel #2
0
        public HomeController()
        {
            var req = System.Web.HttpContext.Current.Request;
              var path = req.Url.Scheme + "://" + req.Url.Authority +
            req.ApplicationPath;

              _studentService = new StudentService(new DataClassesDataContext(),
            new HubConnection(path));
        }