C# Class GitScc.Blinkbox.DevelopmentService

Implementation of common development processes.
Inheritance: IDisposable
Afficher le fichier Open project: blinkbox/Git-Source-Control-Provider

Méthodes publiques

Méthode 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

Méthode 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 méthode

Cancels a review.
public CancelReview ( ) : void
Résultat void

Checkin() public méthode

Get the latest from TFS
public Checkin ( ) : void
Résultat void

DevelopmentService() public méthode

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.
Résultat System

Dispose() public méthode

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

GetLatest() public méthode

Get the latest from TFS
public GetLatest ( ) : void
Résultat void

RefreshTfsStatus() public méthode

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

Review() public méthode

Compare working directory with TFS
public Review ( ) : void
Résultat void

RunAsync() public méthode

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

RunUnitTests() public méthode

Executes unit tests.
public RunUnitTests ( ) : void
Résultat void

UpdateTfsStatus() public méthode

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