private WebSiteApplications GetWebSiteApplications(Guid?verticalId) { if (verticalId == null || verticalId.Value == Guid.Empty) { return(_verticalWebSiteApplications[verticalId]); } var applications = _verticalWebSiteApplications[verticalId]; if (applications != null) { return(applications); } // Asked for a vertical by id but it has not been cached. // May have been added so refresh and try again. _verticalWebSiteApplications = null; EnsureInitialised(); applications = _verticalWebSiteApplications[verticalId]; if (applications != null) { return(applications); } return(_verticalWebSiteApplications[Guid.Empty]); }
private void Initialise() { _verticalWebSiteApplications = new VerticalWebSiteApplications(_verticalsQuery, ApplicationSetUp.GetHost, ApplicationSetUp.GetPort, ApplicationSetUp.GetApplicationPath); }