Ooui-tws-port/Samples/Program.cs

23 lines
551 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",
2017-06-14 04:17:50 +00:00
Text = "I am a button, click me!"
2017-06-13 07:51:24 +00:00
};
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;
}
}
}