/// <summary> /// Initializes a new instance of the <see cref="RedirectableEndPointResolver"/> class. /// </summary> /// <param name="backendConfigurator">The backend configurator to use to retrieve the information from.</param> public RedirectableEndPointResolver(IBackendConfigurator backendConfigurator) : this() { Assertions.AssertNotNull(backendConfigurator, "backendConfigurator"); _endPoint = backendConfigurator.Get("ServerHostAddress"); }
internal WebsiteBackendConfigurator(string rootDirectory) { _targetDirectory = rootDirectory; string file = Path.Combine(_targetDirectory, "Backend.config"); _original = new BackendConfigurator(file); }
private static void SetInitialized() { lock (_lock) { if (_isInitialized) { return; } if (_backendConfigurator == null) { _backendConfigurator = new BackendConfigurator(); } if (_endPointResolver == null) { _endPointResolver = new RedirectableEndPointResolver(_backendConfigurator); } _isInitialized = true; } }