public EvOwinListener(Func<IDictionary<string, object>, Task> app, string address, ushort port) { _app = app; _listener = new EventHttpListener(HandleRequest); _listener.Start(address, port); }
public EvOwinListener(Func <IDictionary <string, object>, Task> app, string address, ushort port) { _app = app; _listener = new EventHttpListener(HandleRequest); _listener.Start(address, port); }
static void Main(string[] args) { var host = new EventHttpListener(Handler); host.Start(args[0], ushort.Parse(args[1]), int.Parse(args[2])); }