C# Class SuperPutty.Data.SessionData

Inheritance: IComparable, ICloneable
Afficher le fichier Open project: sepich/superputty Class Usage Examples

Private Properties

Свойство Type Description
BackUpFiles void
WorkaroundCygwinBug void

Méthodes publiques

Méthode Description
Clone ( ) : object

Create a deep copy of the SessionData object

CombineSessionIds ( string parent, string child ) : string
CompareTo ( object obj ) : int
GetSessionNameFromId ( string sessionId ) : string
GetSessionNameParts ( string sessionId ) : string[]

Split the SessionID into its parent/child parts

GetSessionParentId ( string sessionId ) : string

Get the parent ID of the specified session

LoadSessionsFromFile ( string fileName ) : List

Load session configuration data from the specified XML file

LoadSessionsFromRegistry ( ) : List

Read any existing saved sessions from the registry, decode and populate a list containing the data

SaveSessionsToFile ( List sessions, string fileName ) : void

Save session configuration to the specified XML file

SessionData ( ) : System

Default constructor, instantiate a new SessionData object

SessionData ( string sessionName, string hostName, int port, ConnectionProtocol protocol, string sessionConfig ) : System

Construct a new session data object

ToString ( ) : string

Return a string containing a uri to the protocol://host:port of this sesssions defined host

Private Methods

Méthode Description
BackUpFiles ( string fileName, int count ) : void
WorkaroundCygwinBug ( ) : void

Method Details

Clone() public méthode

Create a deep copy of the SessionData object
public Clone ( ) : object
Résultat object

CombineSessionIds() public static méthode

public static CombineSessionIds ( string parent, string child ) : string
parent string
child string
Résultat string

CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int

GetSessionNameFromId() public static méthode

public static GetSessionNameFromId ( string sessionId ) : string
sessionId string
Résultat string

GetSessionNameParts() public static méthode

Split the SessionID into its parent/child parts
public static GetSessionNameParts ( string sessionId ) : string[]
sessionId string The SessionID
Résultat string[]

GetSessionParentId() public static méthode

Get the parent ID of the specified session
public static GetSessionParentId ( string sessionId ) : string
sessionId string the ID of the session
Résultat string

LoadSessionsFromFile() public static méthode

Load session configuration data from the specified XML file
public static LoadSessionsFromFile ( string fileName ) : List
fileName string The filename containing the settings
Résultat List

LoadSessionsFromRegistry() public static méthode

Read any existing saved sessions from the registry, decode and populate a list containing the data
public static LoadSessionsFromRegistry ( ) : List
Résultat List

SaveSessionsToFile() public static méthode

Save session configuration to the specified XML file
public static SaveSessionsToFile ( List sessions, string fileName ) : void
sessions List A containing the session configuration data
fileName string A path to a filename to save the data in
Résultat void

SessionData() public méthode

Default constructor, instantiate a new SessionData object
public SessionData ( ) : System
Résultat System

SessionData() public méthode

Construct a new session data object
public SessionData ( string sessionName, string hostName, int port, ConnectionProtocol protocol, string sessionConfig ) : System
sessionName string A string representing the name of the session
hostName string The hostname or ip address of the remote host
port int The port on the remote host
protocol ConnectionProtocol The protocol to use when connecting to the remote host
sessionConfig string the name of the saved configuration settings from putty to use
Résultat System

ToString() public méthode

Return a string containing a uri to the protocol://host:port of this sesssions defined host
public ToString ( ) : string
Résultat string