Beispiel #1
0
        public static HtmlServer CreateFromHtmlString(string html)
        {
            var address = GetLocalhostAddress();
            var server  = new HtmlServer(address, html);

            server.Start();
            return(server);
        }
Beispiel #2
0
        public static HtmlServer CreateFromFile(string path)
        {
            var address = GetLocalhostAddress();
            var server  = new HtmlServer(address, File.ReadAllText(path));

            server.Start();
            return(server);
        }
 protected static void ClassInitBase()
 {
     server = HtmlServer.CreateFromFile("Controls.html");
 }