8000 GitHub - romis2012/Nancy.Sessions: Session providers for Nancy web framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

romis2012/Nancy.Sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nancy.Sessions

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
	}
}

About

Session providers for Nancy web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0