Ooui-tws-port/Samples/Program.cs

23 lines
558 B
C#
Raw Normal View History

2017-06-12 22:35:19 +00:00
using System;
using Ooui;
namespace Samples
{
class Program
{
static int Main (string[] args)
{
var server = new Server ();
2017-06-13 07:51:24 +00:00
var button = new Button() {
Title = "The best button",
Name = "TestButton",
Value = "Click Me",
TextContent = "I am a button, click me!"
};
2017-06-12 23:24:40 +00:00
server.Publish ("/button", button);
2017-06-12 22:35:19 +00:00
server.RunAsync ("http://*:8080/").Wait ();
return 0;
}
}
}