C# Class erminas.SmartAPI.Utils.SessionBuilder

Utility class to create Session objects with given login data/login guid/session key and project guid. Useful for RedDot plugins.
Mostra file Open project: erminas/smartapi

Public Methods

Method Description
CreateOrReplaceOldestSession ( ServerLogin login ) : ISession
CreateOrReplaceSession ( ServerLogin login, Func sessionReplacementSelector ) : ISession
CreateSession ( ) : ISession

Create a new session initialized with the login guid, session key and project guid of this SessionBuilder.

CreateSession ( ServerLogin login ) : ISession
SessionBuilder ( ) : System
SessionBuilder ( ServerLogin login, System.Guid loginGuid, string sessionKey, System.Guid projectGuid ) : System

Method Details

CreateOrReplaceOldestSession() public static method

public static CreateOrReplaceOldestSession ( ServerLogin login ) : ISession
login ServerLogin
return ISession

CreateOrReplaceSession() public static method

public static CreateOrReplaceSession ( ServerLogin login, Func sessionReplacementSelector ) : ISession
login ServerLogin
sessionReplacementSelector Func
return ISession

CreateSession() public method

Create a new session initialized with the login guid, session key and project guid of this SessionBuilder.
public CreateSession ( ) : ISession
return ISession

CreateSession() public static method

public static CreateSession ( ServerLogin login ) : ISession
login ServerLogin
return ISession

SessionBuilder() public method

public SessionBuilder ( ) : System
return System

SessionBuilder() public method

public SessionBuilder ( ServerLogin login, System.Guid loginGuid, string sessionKey, System.Guid projectGuid ) : System
login ServerLogin
loginGuid System.Guid
sessionKey string
projectGuid System.Guid
return System