Session providers for Nancy web framework. Currently, the MemorySessionProvider supported.
Usage:
public class Bootstrapper : DefaultNancyBootstrapper
{
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
{
base.ApplicationStartup(container, pipelines);
var sessioonManager = new SessionManager(new MemorySessionProvider());
sessioonManager.SessionStart += SessionStart;
sessioonManager.SessionEnd += SessionEnd;
sessioonManager.Run(pipelines);
}
private static void SessionStart(ISession session)
{
//session start code here
}
private static void SessionEnd(ISession session)
{
//session end code here
}
}