Nancy.Hosting.Kestrel 1.0.1

NancyFx middleware to host it directly in Kestrel server in ASP.Net Core

Install-Package Nancy.Hosting.Kestrel -Version 1.0.1
dotnet add package Nancy.Hosting.Kestrel --version 1.0.1
<PackageReference Include="Nancy.Hosting.Kestrel" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nancy.Hosting.Kestrel --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nancy.Hosting.Kestrel, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nancy.Hosting.Kestrel as a Cake Addin
#addin nuget:?package=Nancy.Hosting.Kestrel&version=1.0.1

// Install Nancy.Hosting.Kestrel as a Cake Tool
#tool nuget:?package=Nancy.Hosting.Kestrel&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Nancy.Hosting.Kestrel

Nancyfx is an extremely useful and fun to use library, which unfortunately (at the moment of writing this) has only one way of hosting it in ASP.Net Core: through an OWIN middleware.
Using Nancy as OWIN middleware works fine, but since OWIN is a middle man that doesn't HAVE to be there I decided to implement a Kestrel middleware to use Nancy directly without Owin. And of course I wanted an excuse to actually implement Kestrel middleware 😃

Nancy.Hosting.Kestrel can be used as follows:

 class Program
 {
   static void Main(string[] args)
   {
     var host = WebHost
                .CreateDefaultBuilder(args)
                .UseKestrel()
                .UseStartup<Startup>()
                .Build();

      host.Run();
    }
  }

  internal class Startup
  {
    public void Configure(IApplicationBuilder app) => app.UseNancy();
  }

Nancy.Hosting.Kestrel

Nancyfx is an extremely useful and fun to use library, which unfortunately (at the moment of writing this) has only one way of hosting it in ASP.Net Core: through an OWIN middleware.
Using Nancy as OWIN middleware works fine, but since OWIN is a middle man that doesn't HAVE to be there I decided to implement a Kestrel middleware to use Nancy directly without Owin. And of course I wanted an excuse to actually implement Kestrel middleware 😃

Nancy.Hosting.Kestrel can be used as follows:

 class Program
 {
   static void Main(string[] args)
   {
     var host = WebHost
                .CreateDefaultBuilder(args)
                .UseKestrel()
                .UseStartup<Startup>()
                .Build();

      host.Run();
    }
  }

  internal class Startup
  {
    public void Configure(IApplicationBuilder app) => app.UseNancy();
  }

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 19,959 11/26/2019
1.0.0 207 11/26/2019