Exemplo n.º 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);
        }
Exemplo n.º 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);
        }