C# Class ExcelService.Sessions.ExcelSessionManager

Inheritance: IExcelSessionManager
Show file Open project: TNOCS/csTouch

Public Methods

Method Description
AddUserToSession ( int id, string username ) : void
CreateSession ( ExcelSession session ) : ExcelWorkbookSession
DeleteSession ( int id ) : void
ExcelSessionManager ( ILog log, IHubContext hubContext ) : System
GetAllSessions ( ) : IEnumerable
GetSession ( int id ) : ExcelWorkbookSession
GetSession ( string sessionName ) : ExcelWorkbookSession
GetSessionsForUser ( string username ) : IEnumerable
InitializeSession ( int id ) : void
RemoveUserFromSession ( int id, string username ) : void
UpdateSession ( int id, ExcelSession session ) : ExcelSession

Private Methods

Method Description
MySessionOnCellValueChanged ( object sender, CellCache cellCache ) : void
MySessionOnNameValueChanged ( object sender, NameCache nameCache ) : void

Method Details

AddUserToSession() public method

public AddUserToSession ( int id, string username ) : void
id int
username string
return void

CreateSession() public method

public CreateSession ( ExcelSession session ) : ExcelWorkbookSession
session ExcelServiceModel.ExcelSession
return ExcelWorkbookSession

DeleteSession() public method

public DeleteSession ( int id ) : void
id int
return void

ExcelSessionManager() public method

public ExcelSessionManager ( ILog log, IHubContext hubContext ) : System
log ILog
hubContext IHubContext
return System

GetAllSessions() public method

public GetAllSessions ( ) : IEnumerable
return IEnumerable

GetSession() public method

public GetSession ( int id ) : ExcelWorkbookSession
id int
return ExcelWorkbookSession

GetSession() public method

public GetSession ( string sessionName ) : ExcelWorkbookSession
sessionName string
return ExcelWorkbookSession

GetSessionsForUser() public method

public GetSessionsForUser ( string username ) : IEnumerable
username string
return IEnumerable

InitializeSession() public method

public InitializeSession ( int id ) : void
id int
return void

RemoveUserFromSession() public method

public RemoveUserFromSession ( int id, string username ) : void
id int
username string
return void

UpdateSession() public method

public UpdateSession ( int id, ExcelSession session ) : ExcelSession
id int
session ExcelServiceModel.ExcelSession
return ExcelServiceModel.ExcelSession