/// <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");
        }
        /// <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");
        }
Esempio n. 3
0
            internal WebsiteBackendConfigurator(string rootDirectory)
            {
                _targetDirectory = rootDirectory;

                string file = Path.Combine(_targetDirectory, "Backend.config");

                _original = new BackendConfigurator(file);
            }
Esempio n. 4
0
            internal WebsiteBackendConfigurator(string rootDirectory)
            {
                _targetDirectory = rootDirectory;

                string file = Path.Combine(_targetDirectory, "Backend.config");

                _original = new BackendConfigurator(file);
            }
Esempio n. 5
0
        private static void SetInitialized()
        {
            lock (_lock)
            {
                if (_isInitialized)
                {
                    return;
                }

                if (_backendConfigurator == null)
                {
                    _backendConfigurator = new BackendConfigurator();
                }
                if (_endPointResolver == null)
                {
                    _endPointResolver = new RedirectableEndPointResolver(_backendConfigurator);
                }

                _isInitialized = true;
            }
        }