Skip to content

Session providers for Nancy web framework

Notifications You must be signed in to change notification settings

AlexFireFox/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

Languages

  • C# 99.5%
  • Batchfile 0.5%