C# Class BuildProgress.Connect

The object for implementing an Add-in.
Inheritance: IDTExtensibility2
Mostrar archivo Open project: alastairs/buildprogress

Public Methods

Method Description
OnAddInsUpdate ( Array &custom ) : void
OnBeginShutdown ( Array &custom ) : void
OnConnection ( object application, ext_ConnectMode connectMode, object addInInstance, Array &custom ) : void

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.

OnDisconnection ( ext_DisconnectMode RemoveMode, Array &custom ) : void
OnStartupComplete ( Array &custom ) : void

Private Methods

Method Description
InitialiseProgressValues ( ) : void

Resets any existing build state to give a fresh start.

InitialiseTaskBar ( ) : void

Reset the task bar progress indicator to 0 (no progress) and remove any overlay icon displayed.

OnBuildBegin ( vsBuildScope scope, vsBuildAction action ) : void

Implements a handler for the OnBuildBegin build event. Resets the task bar to 0 (and associated build state metadata stored by the add-in).

OnBuildDone ( vsBuildScope scope, vsBuildAction action ) : void

Sets the appropriate overlay icon to display whether the build was a success or failure.

OnBuildProjConfigDone ( string project, string projectConfig, string platform, string solutionConfig, bool success ) : void

Implements a handler for the OnBuildProjConfigDone build event. Increments the task bar progress indicator, and turns it red on a failed project build.

UpdateProgressValueAndState ( bool errorThrown ) : void

Increments the taskbar progress indicator by one step, and changes the taskbar state to "error" (i.e., red) if a build error has been reported.

Method Details

OnAddInsUpdate() public method

public OnAddInsUpdate ( Array &custom ) : void
custom System.Array
return void

OnBeginShutdown() public method

public OnBeginShutdown ( Array &custom ) : void
custom System.Array
return void

OnConnection() public method

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.
public OnConnection ( object application, ext_ConnectMode connectMode, object addInInstance, Array &custom ) : void
application object Root object of the host application.
connectMode ext_ConnectMode Describes how the Add-in is being loaded.
addInInstance object Object representing this Add-in.
custom System.Array Array of custom parameters
return void

OnDisconnection() public method

public OnDisconnection ( ext_DisconnectMode RemoveMode, Array &custom ) : void
RemoveMode ext_DisconnectMode
custom System.Array
return void

OnStartupComplete() public method

public OnStartupComplete ( Array &custom ) : void
custom System.Array
return void