Table of Contents

Class HttpServerHostContextBuilder

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

Represents a context constructor for HttpServerHostContext.

public sealed class HttpServerHostContextBuilder
Inheritance
HttpServerHostContextBuilder
Inherited Members

Properties

CatchConfigurationExceptions

Defines how the constructor should capture errors thrown within UsePortableConfiguration(Action<PortableConfigurationBuilder>) and display in the Console.

ServerConfiguration

Gets the Server Configuration object.

Methods

Build()

Builds an HttpServerHostContext with the specified parameters.

UseAutoScan<TModule>()

This method is an shortcut for calling AutoScanModules<TModule>().

UseAutoScan<TModule>(Assembly)

This method is an shortcut for calling AutoScanModules<TModule>().

UseBootstraper(Action)

Adds an function that will be executed immediately before starting the HTTP server.

UseConfiguration(Action<HttpServerConfiguration>)

Calls an action that has the HTTP server configuration as an argument.

UseCors(CrossOriginResourceSharingHeaders)

Sets an CrossOriginResourceSharingHeaders instance in the current listening host.

UseCors(Action<CrossOriginResourceSharingHeaders>)

Calls an action that has an CrossOriginResourceSharingHeaders instance from the main listening host as an argument.

UseFlags(HttpServerFlags)

Overrides the HTTP server flags with the provided flags.

UseForwardingResolver(ForwardingResolver)

This method is a shortcut for setting ForwardingResolver.

UseForwardingResolver<TForwardingResolver>()

This method is a shortcut for setting ForwardingResolver.

UseHandler(HttpServerHandler)

This method is an shortcut for calling RegisterHandler(HttpServerHandler).

UseHandler<THandler>()

This method is an shortcut for calling RegisterHandler<T>().

UseHttpServer(Action<HttpServer>)

Calls an action that has the HTTP server instance as an argument.

UseListeningPort(ListeningPort)

Sets the main ListeningPort of this host builder.

UseListeningPort(string)

Sets the main ListeningPort of this host builder.

UseListeningPort(ushort)

Sets the main ListeningPort of this host builder.

UseLocale(CultureInfo)

Overrides the DefaultCultureInfo property in the HTTP server configuration.

UsePortableConfiguration(Action<PortableConfigurationBuilder>)

Enables the portable configuration for this application, which imports settings, parameters, and other information from a JSON settings file.

UseRouter(Router)

Sets an Router instance in the current listening host.

UseRouter(Action<Router>)

Calls an action that has an Router instance from the host HTTP server.

UseStartupMessage(Func<string>)

Adds a function that returns an optional initialization message to the HttpServerHostContext output verbose.

UseStartupMessage(string)

Add an optional message to the HttpServerHostContext output verbose.