Misc Resources

Authentication Resources

Nancy Visual Studio Extensions

Nancy Async Await

Steps for NancyFx in a new Project

  • Create a new ASP.NET empty website
  • Install the Nuget package
Install-Package Nancy
  • Configure Katana by following these steps
  • Create a HelloWorld module
public class HelloModule : NancyModule
    {
        public HelloModule()
        {
            Get["/"] = parameters => "Hello World";
        }
    }

Poco Classes

Dapper

Dapper Extensions
https://github.com/tmsmith/Dapper-Extensions
Install-Package DapperExtensions

or
Dapper.SimpleCRUD
https://github.com/ericdc1/Dapper.SimpleCRUD
Install-Package Dapper.SimpleCRUD

https://github.com/ericdc1/Dapper.SimpleCRUD/wiki/T4-Template

or
Dapper.Rainbow ?

or
Dapper dot net async
https://github.com/bkaid/dapper-dot-net
Install-Package Dapper-Async

http://stackoverflow.com/questions/10030285/dapper-rainbow-vs-dapper-contrib

Dapper.Contrib - Tracks Entities
Dapper.Rainbow - Basic Crud

Swapping out the Default JSON Serializer

Install-Package Nancy.Serialization.JsonNet

Testing Nancy

Hosting Nancy

File System

  • Equivant to Server.MapPath("~/") for Nancy
  • Original Answer here: stack overflow
use IRootPathProvider
call GetRootPath()
Then use Path.Combine()

Request Pipeline Logging

The OmniSharp Server Bootstrapper shows a fantastic example of logging incoming and outgoing web requests.