Sisk

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.

C#
public sealed class HttpServerHostContext : IDisposable

Inheritance #

object ← HttpServerHostContext

Implements #

IDisposable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties #

NameDescription
AccessLogsGets the configured access log stream. This property is inherited from ServerConfiguration.
CrossOriginResourceSharingPolicyGets the host CrossOriginResourceSharingPolicy.
ErrorLogsGets the configured error log stream. This property is inherited from ServerConfiguration.
HttpServerGets the host HTTP server.
ParametersGets the initialization parameters from the portable configuration file.
RouterGets the host router.
ServerConfigurationGets the host server configuration.

Methods #

NameDescription
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.

Type to search the documentation and the API reference.