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

            host.Start(args[0], ushort.Parse(args[1]), int.Parse(args[2]));
        }