Table of Contents

Class HttpServerHostContext

Namespace
Sisk.Core.Http.Hosting
Assembly
Sisk.Core.dll

Represents the class that hosts most of the components needed to run a Sisk application.

public sealed class HttpServerHostContext : IDisposable
Inheritance
HttpServerHostContext
Implements
Inherited Members

Properties

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

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.