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
| Name | Summary |
|---|---|
| Server |
Creates the HTTP server. |
| Server |
Creates the HTTP server. |
| Server |
Creates the HTTP server. |
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 |
Task | |
| StopAsync |
Task | |
| TriggerReloadAsync |
Task |
