Server.

Server(string, int, bool, string, bool, ILoggerProvider) Constructor

Summary

Creates the HTTP server.
Assembly
Wyam.Hosting.dll
Namespace
Wyam.Hosting
Containing Type
Server

Syntax

public Server(string localPath, int port, bool extensionless, string virtualDirectory, bool liveReload, ILoggerProvider loggerProvider)

Parameters

Name Type Description
localPath string The local path to serve files from.
port int The port the server will serve HTTP requests on.
extensionless bool true if the server should support extensionless URLs, false otherwise.
virtualDirectory string The virtual directory the server should respond to, or null to use the root URL.
liveReload bool Enables support for LiveReload.
loggerProvider ILoggerProvider The logger provider to use.

Return Value

Type Description
void
GitHub