Nancy.Hosting.Self
Exception for when automatic address reservation creation fails.
Provides the user with manual instructions.
Gets a message that describes the current exception.
The error message that explains the reason for the exception, or an empty string("").
1
Host configuration for the self host.
Gets or sets a property that determines if localhost URIs are
rewritten to http://+:port/ style URIs to allow for listening on
all IP addresses, but requiring either a URL reservation, or admin
access.
Defaults to true.
Configuration around automatically creating URL reservations.
Gets or sets a property that determines if Transfer-Encoding: Chunked is allowed
for the response instead of Content-Length.
Defaults to true.
Gets or sets a property that provides a callback to be called
if there is an unhandled exception in the self host.
Note: this will *not* be called for normal Nancy exceptions
that are handled by the Nancy handlers.
Defaults to writing to debug out.
Gets or sets a property that determines whether client certificates
are enabled or not.
When set to true the self host will request a client certificate if the
request is running over SSL.
Defaults to false.
Gets or sets a property determining if base URI matching can fall back to just
using Authority (Schema + Host + Port) as base URI if it cannot match anything in
the known list. This should only be set to True if you have issues with port forwarding
(e.g. on Azure).
Defaults to false.
Gets or sets a property determining how many total connections the NancyHost can maintain simultaneously.
Higher values mean more connections can be maintained at a slower average response times; while fewer
connections will be rejected.
Lower values will result in fewer conections, yet will be maintained at a faster average response time.
Defaults to the approximate number of processor threads.
Gets approximate processor thread count by halfing the Logical Core count to
account for hyper-threading.
Initializes the default configuration.
MaximumConnectionCount by default is half of the Logical Core count.
If the system running NancyHost is not using hyper-threading you may want to consider
supplying your own values for MaximumConnectionCount as the default assumes
hyperthreading is being utilized.
A helper class that checks for a header against a list of headers that should be ignored
when populating the headers of an object.
Determines if a header is ignored when populating the headers of an
object.
The name of the header.
true if the header is ignored; otherwise, false.
Allows to host Nancy server inside any application - console or windows service.
NancyHost uses internally. Therefore, it requires full .net 4.0 profile (not client profile)
to run. will launch a thread that will listen for requests and then process them. Each request is processed in
its own execution thread. NancyHost needs in order to be used from another appdomain under
mono. Working with AppDomains is necessary if you want to unload the dependencies that come with NancyHost.
Initializes a new instance of the class for the specified .
Uses the default configuration
The s that the host will listen to.
Initializes a new instance of the class for the specified .
Uses the specified configuration.
The s that the host will listen to.
Configuration to use
Initializes a new instance of the class for the specified , using
the provided .
Uses the default configuration
The bootstrapper that should be used to handle the request.
The s that the host will listen to.
Initializes a new instance of the class for the specified , using
the provided .
Uses the specified configuration.
The bootstrapper that should be used to handle the request.
Configuration to use
The s that the host will listen to.
Initializes a new instance of the class for the specified , using
the provided .
Uses the default configuration
The that the host will listen to.
The bootstrapper that should be used to handle the request.
Initializes a new instance of the class for the specified , using
the provided .
Uses the specified configuration.
The that the host will listen to.
The bootstrapper that should be used to handle the request.
Configuration to use
Stops the host if it is running.
Start listening for incoming requests with the given configuration
Stop listening for incoming requests.
Executes NetSh commands
Add a url reservation
Url to add
User to add the reservation for
True if successful, false otherwise.
Helpers for UAC
Run an executable elevated
File to execute
Arguments to pass to the executable
True if successful, false otherwise
Extension methods for working with instances.
Configuration for automatic url reservation creation
Gets or sets a value indicating whether url reservations
are automatically created when necessary.
Defaults to false.
Gets or sets a value for the user to use to create the url reservations for.
Defaults to the "Everyone" group.