Exemple #1
0
        public static KestrelHttpServer StartNew(string prefix, IHttpHandler handler,
                                                 KestrelServerSettings serverSettings, ILog log)
        {
            var server = new KestrelHttpServer(handler, log, serverSettings);

            server.Start(prefix);
            return(server);
        }
Exemple #2
0
        public static KestrelHttpServer StartNew(int port, HttpScheme scheme, IHttpHandler handler,
                                                 KestrelServerSettings serverSettings, ILog log)
        {
            var server = new KestrelHttpServer(handler, log, serverSettings);

            server.Start(port, scheme);
            return(server);
        }