Nancy.Hosting.Self
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.
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.
Helpers for UAC
Run an executable elevated
File to execute
Arguments to pass to the executable
True if successful, false otherwise
Host configuration for the self host
Gets or sets a property that determines if localhost uris are
rewritten to htp://+:port/ style uris to allow for listening on
all ports, 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 (default: true).
Gets or sets a property that provides a callback to be called
if there's 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).
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.
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
Extension methods for working with instances.