Class
HttpServerHostContext
Represents the class that hosts most of the components needed to run a Sisk application.
public sealed class HttpServerHostContext : IDisposableInheritance #
object ← HttpServerHostContext
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties #
| Name | Description |
|---|---|
| AccessLogs | Gets the configured access log stream. This property is inherited from ServerConfiguration. |
| CrossOriginResourceSharingPolicy | Gets the host CrossOriginResourceSharingPolicy. |
| ErrorLogs | Gets the configured error log stream. This property is inherited from ServerConfiguration. |
| HttpServer | Gets the host HTTP server. |
| Parameters | Gets the initialization parameters from the portable configuration file. |
| Router | Gets the host router. |
| ServerConfiguration | Gets the host server configuration. |
Methods #
| Name | Description |
|---|---|
| Dispose() | Invalidates this class and releases the resources used by it, and permanently closes the HTTP server. |
| Start(bool, bool) | Starts the HTTP server. |
| StartAsync(bool, bool) | Asynchronously starts the HTTP server. |