Beispiel #1
0
        /// <summary>
        /// Starts receiving the HTTP requests.
        /// </summary>
        public void Start()
        {
            lock (_sync)
            {
                var msg = _state.CheckIfAvailable(true, false, false) ?? checkIfCertificateExists();
                if (msg != null)
                {
                    _logger.Error(msg);
                    return;
                }

                _services.Start();
                startReceiving();

                _state = ServerState.Start;
            }
        }