Ejemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            CertificateHandler.ConfigureSslCert(_url);

            var config = HttpConfigHandler.CreateConfig(_url);

            _server = new HttpSelfHostServer(config);
            _server.OpenAsync().Wait();
            EventLog.WriteEntry("ConDepNode started", EventLogEntryType.Information);
        }
Ejemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            var cert = CertificateHandler.ConfigureSslCert(_url);

            if (!CertificateHandler.CertificateBoundToIpAndPort(_url, cert.GetCertHash()))
            {
                CertificateHandler.BindCertificateToIpAndPort(cert, _url);
            }
            var config = HttpConfigHandler.CreateConfig(_url);

            _server = new HttpSelfHostServer(config);
            _server.OpenAsync().Wait();
            EventLog.WriteEntry("ConDepNode started", EventLogEntryType.Information);
        }