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);
        }