C# Class DeploymentTracker.App.Utilities.UtilityLibrary

TODO: Update summary.
Show file Open project: RyanTBerry/WindowsAzureDeploymentTracker

Public Methods

Method Description
DeleteTFSConnectionStringToDB ( this tfsConnectionString ) : void

Deletes the TFS connection string to DB.

GenerateTFSUrl ( this tfsConnectionString ) : string

Generates the TFS URL.

GetTFSConnectionString ( this tfsServerName ) : TFSConnectionString

Gets the TFS connection string.

PopInformationDialog ( this message, string header = "Information Details" ) : void

Shows the UI information.

SaveOrUpdateTFSConnectionStringToDB ( this tfsConnectionString, bool raiseErrorIfExists = false ) : void

Converts to TFS connection string.

SaveThisInDB ( this buildItem ) : void

Saves the this in DB.

ShowGenericException ( this ex, string customMessage = "" ) : void

Shows the generic exception.

ShowUIException ( this ex ) : void

Shows the UI exception.

ShowUIInformation ( this message, FormStartPosition startpos = FormStartPosition.CenterParent ) : void

Shows the UI information.

StoreLogEntry ( this logEntry ) : void

Stores the log entry.

WriteToLog ( this ex ) : void

Writes to log.

WriteToSystemLog ( this ex, string logLine ) : void

Writes to system log.

Private Methods

Method Description
CanRollback ( string solutionName ) : bool

Determines whether this instance can rollback the specified solution name.

GetLastSuccessfulVersionForSolution ( string solutionName, string currentVersion ) : string

Gets the last successful version for solution.

GetUniqueVersionForSolution ( string solutionName ) : string

Gets the unique version for solution.

IsRollbackVersion ( string solutionName, string version ) : bool

Determines whether [is rollback version] [the specified solution name].

UpdateAllSolutionFlagsToNull ( string solutionName ) : void

Updates the solution flags to null.

UpdateDeploymentLogStatus ( string solutionName, string version, DeploymentStatus deploymentStatus ) : void

Updates the deployment log status.

UpdateSolutionFlagsToNull ( string solutionName, string currentVersion ) : void

Updates the solution flags to null.

ValidateAppSettings ( ) : void

Validates the app settings.

Method Details

DeleteTFSConnectionStringToDB() public static method

Deletes the TFS connection string to DB.
public static DeleteTFSConnectionStringToDB ( this tfsConnectionString ) : void
tfsConnectionString this The TFS connection string.
return void

GenerateTFSUrl() public static method

Generates the TFS URL.
public static GenerateTFSUrl ( this tfsConnectionString ) : string
tfsConnectionString this The TFS connection string.
return string

GetTFSConnectionString() public static method

Gets the TFS connection string.
public static GetTFSConnectionString ( this tfsServerName ) : TFSConnectionString
tfsServerName this Name of the TFS server.
return DeploymentTracker.Services.Entities.TFSConnectionString

PopInformationDialog() public static method

Shows the UI information.
public static PopInformationDialog ( this message, string header = "Information Details" ) : void
message this The message.
header string The header.
return void

SaveOrUpdateTFSConnectionStringToDB() public static method

Converts to TFS connection string.
public static SaveOrUpdateTFSConnectionStringToDB ( this tfsConnectionString, bool raiseErrorIfExists = false ) : void
tfsConnectionString this The TFS connection parameters.
raiseErrorIfExists bool
return void

SaveThisInDB() public static method

Saves the this in DB.
public static SaveThisInDB ( this buildItem ) : void
buildItem this The build item.
return void

ShowGenericException() public static method

Shows the generic exception.
public static ShowGenericException ( this ex, string customMessage = "" ) : void
ex this The ex.
customMessage string The custom message.
return void

ShowUIException() public static method

Shows the UI exception.
public static ShowUIException ( this ex ) : void
ex this The ex.
return void

ShowUIInformation() public static method

Shows the UI information.
public static ShowUIInformation ( this message, FormStartPosition startpos = FormStartPosition.CenterParent ) : void
message this The message.
startpos FormStartPosition The startpos.
return void

StoreLogEntry() public static method

Stores the log entry.
public static StoreLogEntry ( this logEntry ) : void
logEntry this The log entry.
return void

WriteToLog() public static method

Writes to log.
public static WriteToLog ( this ex ) : void
ex this The ex.
return void

WriteToSystemLog() public static method

Writes to system log.
public static WriteToSystemLog ( this ex, string logLine ) : void
ex this The ex.
logLine string
return void