WebServerTask.HttpServer.HttpServer C# (CSharp) 메소드

HttpServer() 공개 메소드

public HttpServer ( int serverPort, AppServiceConnection connection ) : System
serverPort int
connection AppServiceConnection
리턴 System
        public HttpServer(int serverPort, AppServiceConnection connection)
        {
            listener = new StreamSocketListener();
            port = serverPort; 
            appServiceConnection = connection;
            //Add event handler for HTTP connections
            listener.ConnectionReceived += (s, e) => ProcessRequestAsync(e.Socket);
        }