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)); }
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)); }