src/AppMotor.HttpServer/HttpServerApplication.cs
/// <summary>
/// Runs an HTTP server at the specified port.
/// </summary>
/// <param name="port">The HTTP port to use (will be bound to <see cref="SocketListenAddresses.Loopback"/>)</param>
/// <param name="cancellationToken">A cancellation token to stop the HTTP server application.</param>
/// <returns>The exit code to use.</returns>
Runs an HTTP server at the specified port.
Runs an HTTP server at the specified port .
[PublicAPI]
    public static int Run(int port, CancellationToken cancellationToken = default)
    {
        var app = new HttpServerApplication(port);
        return app.Run(cancellationToken);
    }
[ PublicAPI ] public static int Run ( int port , CancellationToken cancellationToken = default ) { var app = new HttpServerApplication ( port ) ; return app . Run ( cancellationToken ) ; }
Runs an HTTP server at the specified port.
Runs an HTTP server at the specified port .
The exit code to use.
The exit code to use .
port
int
The HTTP port to use (will be bound to )
The HTTP port to use ( will be bound to )
cancellationToken
CancellationToken
A cancellation token to stop the HTTP server application.
A cancellation token to stop the HTTP server application .