Start() 공개 메소드

public Start ( ) : void
리턴 void
예제 #1
0
        public static SimpleServer Create(string url, Action <HttpListenerContext> handler)
        {
            var server = new SimpleServer(new HttpListener {
                Prefixes = { url }
            }, handler);

            server.Start();
            return(server);
        }
예제 #2
0
        public static SimpleServer Create(
            string url,
            Action<HttpListenerContext> handler,
            AuthenticationSchemes authenticationSchemes = AuthenticationSchemes.Anonymous)
        {
            var listener = new HttpListener { Prefixes = { url }, AuthenticationSchemes = authenticationSchemes };
            var server = new SimpleServer(listener, handler);

            server.Start();
            return server;
        }
예제 #3
0
        public static SimpleServer Create(string url, Action <HttpListenerContext> handler, AuthenticationSchemes authenticationSchemes = AuthenticationSchemes.Anonymous)
        {
            var listener = new HttpListener
            {
                Prefixes = { url },
                AuthenticationSchemes = authenticationSchemes
            };
            var server = new SimpleServer(listener, handler);

            server.Start();
            return(server);
        }
예제 #4
0
 public static SimpleServer Create(string url, Action<HttpListenerContext> handler)
 {
     var server = new SimpleServer(new HttpListener { Prefixes = { url } }, handler);
     server.Start();
     return server;
 }