C# Class SuperPutty.Data.SessionData

Inheritance: IComparable, ICloneable
Show file Open project: sepich/superputty Class Usage Examples

Private Properties

Property Type Description
BackUpFiles void
WorkaroundCygwinBug void

Public Methods

Method 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

Method Description
BackUpFiles ( string fileName, int count ) : void
WorkaroundCygwinBug ( ) : void

Method Details

Clone() public method

Create a deep copy of the SessionData object
public Clone ( ) : object
return object

CombineSessionIds() public static method

public static CombineSessionIds ( string parent, string child ) : string
parent string
child string
return string

CompareTo() public method

public CompareTo ( object obj ) : int
obj object
return int

GetSessionNameFromId() public static method

public static GetSessionNameFromId ( string sessionId ) : string
sessionId string
return string

GetSessionNameParts() public static method

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

GetSessionParentId() public static method

Get the parent ID of the specified session
public static GetSessionParentId ( string sessionId ) : string
sessionId string the ID of the session
return string

LoadSessionsFromFile() public static method

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

LoadSessionsFromRegistry() public static method

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

SaveSessionsToFile() public static method

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
return void

SessionData() public method

Default constructor, instantiate a new SessionData object
public SessionData ( ) : System
return System

SessionData() public method

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
return System

ToString() public method

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