Server.

Server(string, int, bool, string, bool, IDictionary<string, string>, 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, IDictionary<string, string> contentTypes, 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.
contentTypes IDictionary<string, string> Additional content types the server should support.
loggerProvider ILoggerProvider The logger provider to use.

Return Value

Type Description
void
GitHub