Server Class

Summary

An HTTP server that can serve static files from a specified directory on disk.
Assembly
Wyam.Hosting.dll
Namespace
Wyam.Hosting
Interfaces
  • IWebHost
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IWebHost"] Type["Server"] class Type type-node

Syntax

public class Server : IWebHost

Constructors

Properties

Name Value Summary
Extensionless bool
LocalPath string
Port int
ServerFeatures IFeatureCollection
Services IServiceProvider
VirtualDirectory string
The virtual directory at which files are served (or null). This will always begin with a backslash and end without one.

Methods

Name Value Summary
Dispose() void
Start() void
Start listening.
StartAsync(CancellationToken) Task
StopAsync(CancellationToken) Task
TriggerReloadAsync() Task
GitHub