C# Class Crow.Library.Host.CrowHost

Host application for http api.
Inheritance: CrowHostingBase
Mostrar archivo Open project: msusur/Crowfx

Public Methods

Method Description
ConfigureHost ( IInjectionContainer container ) : ICrowHttpHost

Configures the host with default configuration. Port: 80 and baseurl : localhost

ConfigureHost ( IInjectionContainer container, string baseUrl ) : ICrowHttpHost

Configures the host with default port 80.

ConfigureHost ( IInjectionContainer container, string baseUrl, int port, bool isHttps = false ) : ICrowHttpHost

Configures the host with the given baseurl and port.

CrowHost ( ILog log, INamingConvention convention, IInjectionContainer container, IConfigurationHelper configuration, IHttpHost host ) : System.Net.Http

Initializes a new instance of CrowHost.

Protected Methods

Method Description
BeforeHostStart ( IHttpHost host, HttpMessageHandler handler, System.Web.Http.SelfHost.HttpSelfHostConfiguration configuration ) : void

Initializes before the host starts.

Method Details

BeforeHostStart() protected method

Initializes before the host starts.
protected BeforeHostStart ( IHttpHost host, HttpMessageHandler handler, System.Web.Http.SelfHost.HttpSelfHostConfiguration configuration ) : void
host IHttpHost
handler System.Net.Http.HttpMessageHandler
configuration System.Web.Http.SelfHost.HttpSelfHostConfiguration
return void

ConfigureHost() public static method

Configures the host with default configuration. Port: 80 and baseurl : localhost
public static ConfigureHost ( IInjectionContainer container ) : ICrowHttpHost
container IInjectionContainer
return ICrowHttpHost

ConfigureHost() public static method

Configures the host with default port 80.
public static ConfigureHost ( IInjectionContainer container, string baseUrl ) : ICrowHttpHost
container IInjectionContainer
baseUrl string
return ICrowHttpHost

ConfigureHost() public static method

Configures the host with the given baseurl and port.
public static ConfigureHost ( IInjectionContainer container, string baseUrl, int port, bool isHttps = false ) : ICrowHttpHost
container IInjectionContainer
baseUrl string
port int
isHttps bool
return ICrowHttpHost

CrowHost() public method

Initializes a new instance of CrowHost.
public CrowHost ( ILog log, INamingConvention convention, IInjectionContainer container, IConfigurationHelper configuration, IHttpHost host ) : System.Net.Http
log ILog Instance of logger.
convention INamingConvention Naming convention instance.
container IInjectionContainer Dependency injection container.
configuration IConfigurationHelper Configuration helper.
host IHttpHost Http host instance.
return System.Net.Http