Class HttpServerHostContextBuilder
Namespace: Sisk.Core.Http.Hosting
Assembly: Sisk.Core.dll
Represents a context constructor for HttpServerHostContext.
public sealed class HttpServerHostContextBuilder
Inheritance
object ← HttpServerHostContextBuilder
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Defines how the constructor should capture errors thrown within UsePortableConfiguration(Action<PortableConfigurationBuilder>) and display in the Console.
Gets the Server Configuration object.
Methods
Builds an HttpServerHostContext with the specified parameters.
This method is an shortcut for calling AutoScanModules<TModule>().
UseAutoScan<TModule>(Assembly)
This method is an shortcut for calling AutoScanModules<TModule>().
Adds an function that will be executed immediately before starting the HTTP server.
UseBootstraper(string, Action)
Adds an function that will be executed immediately before starting the HTTP server.
Adds an asynchronous function that will be executed immediately before starting the HTTP server.
UseBootstraper(string, Func<Task>)
Adds an asynchronous 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(Action<CrossOriginResourceSharingHeaders>)
Calls an action that has an CrossOriginResourceSharingHeaders instance from the main listening host as an argument.
UseCors(CrossOriginResourceSharingHeaders)
Sets an CrossOriginResourceSharingHeaders instance in the current listening host.
Sets the HTTP server engine.
Sets the HTTP server engine using a default constructor.
UseForwardingResolver(ForwardingResolver)
This method is a shortcut for setting ForwardingResolver.
UseForwardingResolver<TForwardingResolver>()
This method is a shortcut for setting ForwardingResolver.
This method is an shortcut for calling RegisterHandler<T>().
This method is an shortcut for calling RegisterHandler(HttpServerHandler).
UseHttpServer(Action<HttpServer>)
Calls an action that has the HTTP server instance as an argument.
Sets the main ListeningPort of this host builder.
Sets the main ListeningPort of this host builder.
UseListeningPort(ListeningPort)
Sets the main ListeningPort of this host builder.
Changes the default thread current culture through DefaultThreadCurrentCulture.
UsePortableConfiguration(Action<PortableConfigurationBuilder>)
Enables the portable configuration for this application, which imports settings, parameters, and other information from a JSON settings file.
Calls an action that has an Router instance from the host HTTP server.
Sets an Router instance in the current listening host.
Add an optional message to the HttpServerHostContext output verbose.
UseStartupMessage(Func<string>)
Adds a function that returns an optional initialization message to the HttpServerHostContext output verbose.
                                    English
                                
                                    Русский
                                
                                    Português
                                
                                    Español
                                
                                    Deutsch
                                
                                    中文 (简体)
                                
                                    日本語