C# Class GitScc.Blinkbox.DevelopmentService

Implementation of common development processes.
Inheritance: IDisposable
Datei anzeigen Open project: blinkbox/Git-Source-Control-Provider

Public Methods

Method Description
CancelReview ( ) : void

Cancels a review.

Checkin ( ) : void

Get the latest from TFS

DevelopmentService ( SccProviderService sccProvider, NotificationService notificationService, SccHelperService sccHelper ) : System

Initializes a new instance of the DevelopmentService class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetLatest ( ) : void

Get the latest from TFS

RefreshTfsStatus ( bool forceUpdate ) : void

Updates the TFS status and displays in the pending changes window.

Review ( ) : void

Compare working directory with TFS

RunAsync ( System.Action action, string operation ) : Task

Runs the provided action asyncronously.

RunUnitTests ( ) : void

Executes unit tests.

UpdateTfsStatus ( ) : void

Updates the TFS status and displays in the pending changes window.

Private Methods

Method Description
CheckLatestFromTfs ( string currentBranch ) : bool

Checks whether the provided branch is ahead and/or behind tfs.

CheckWorkingDirectoryClean ( ) : bool

Checks whether the working directory has any unchanged files or is in the middle of a merge.

CommitIfRequired ( ) : void

Merges if required.

FetchFromTfs ( bool silent = false ) : void

Fetches from TFS into the tfs/default remote branch.

Method Details

CancelReview() public method

Cancels a review.
public CancelReview ( ) : void
return void

Checkin() public method

Get the latest from TFS
public Checkin ( ) : void
return void

DevelopmentService() public method

Initializes a new instance of the DevelopmentService class.
public DevelopmentService ( SccProviderService sccProvider, NotificationService notificationService, SccHelperService sccHelper ) : System
sccProvider SccProviderService The SCC provider.
notificationService NotificationService The notification service.
sccHelper SccHelperService The SCC helper.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

GetLatest() public method

Get the latest from TFS
public GetLatest ( ) : void
return void

RefreshTfsStatus() public method

Updates the TFS status and displays in the pending changes window.
public RefreshTfsStatus ( bool forceUpdate ) : void
forceUpdate bool if set to true [force update].
return void

Review() public method

Compare working directory with TFS
public Review ( ) : void
return void

RunAsync() public method

Runs the provided action asyncronously.
public RunAsync ( System.Action action, string operation ) : Task
action System.Action The action.
operation string The operation.
return Task

RunUnitTests() public method

Executes unit tests.
public RunUnitTests ( ) : void
return void

UpdateTfsStatus() public method

Updates the TFS status and displays in the pending changes window.
public UpdateTfsStatus ( ) : void
return void