C# Class Chronicle.PerThreadSessionLifeCycle

Inheritance: ISessionLifeCycle
Show file Open project: AutoRevo/chronicle

Public Methods

Method Description
AddSession ( string key, ISession session ) : ISession
CloseSessions ( ) : void
GetSession ( string key ) : ISession
HasSession ( string key ) : bool

Private Methods

Method Description
getCurrentThreadSessions ( ) : ISession>.Dictionary
getThreadId ( ) : int

Method Details

AddSession() public method

public AddSession ( string key, ISession session ) : ISession
key string
session ISession
return ISession

CloseSessions() public method

public CloseSessions ( ) : void
return void

GetSession() public method

public GetSession ( string key ) : ISession
key string
return ISession

HasSession() public method

public HasSession ( string key ) : bool
key string
return bool