Skip to content

IBundleApplication Interface

Bundle application provided to support the BundleUI.

Methods

MethodDescription
Cancel()Sets the bundle application to be canceled.
CheckCanceled()Check to see if the bundle application has been canceled.
CheckFailed()Check to see if the bundle application is in an error state.
CloseSplashScreen()Directs the Burn engine to dismiss the splash screen.
DetectAgain()Requests the Burn engine re-execute detection after UIReady() was already called.
DisallowRestart()Directs the Burn engine to best-effort prevent restarts.
Error(int)Sets the bundle error state.
EvaluateCondition(string)Request the Burn engine evalute a condition.
FormatString(string)Request the Burn engine to resolve a string with variable references (“[VARNAME]”).
GetBundleLogPath()Get the path to the bundle log file.
GetCommandLineArguments()Returns the bundle command-line arguments.
GetManifest()Returns the bundle manifest.
GetNumericVariable(string)Gets a numeric variable.
GetPackage(int)Gets a package by index.
GetPackage(string)Gets a package by identity.
GetStringVariable(string)Gets a string variable.
GetVersionVariable(string)Gets a version variable.
Go()Directs the bundle application to plan with the default PlanAction.
GoWithAction(BundleAction)Directs the bundle applicaiton to plan a specific action.
LogError(int, string, string[])Log an error message to the bundle’s log file.
LogMessage(string, string[])Log a message to the bundle’s log file.
ParseCommandLine()Parse the bundle command-line for the pattern VARNAME=VALUE to assign variables.
PromptCancel(string, string)Prompts the user to cancel with a specific cancel message.
SendCancelPrompt()Requests the bundle application to prompt for cancel.
SendEmbeddedError(int, string, int)Send message to parent bundle when embedded.
SetPlanFeatureRequestState(string, string, BundleFeatureState)Sets the requested state for a package’s feature. Must be called before calling Go() or GoWithAction().
SetPlanPackageRequestState(string, BundleRequestState)Sets the requested state for a package. Must be called before calling Go() or GoWithAction().
SetVariable(string, string)Sets a string variable.
SetVariable(string, long)Sets a numeric variable.
SetVersionVariable(string, string)Sets a version variable.
UIReady()Obsolete. This method is unused.

Properties

PropertyDescription
AllowRestartIndicates whether restarts are allowed.
PackageCountCount of packages in the bundle.
PackagesEnumerates the packages in the bundle.
PlanActionThe default plan action set via the bundle command-line.
RestartRequiredIndicates whether a restart was required.
ResumeTypeResume type of the bundle.
RollingBackIndicates if the bundle application is rolling back.

FireGiant.BundleApplicationFramework v6.0.1

Cancel() Method

Sets the bundle application to be canceled.

Declaration

public void Cancel()

CheckCanceled() Method

Check to see if the bundle application has been canceled.

Declaration

public bool CheckCanceled()

Return value

bool True if the bundle application was canceled.

CheckFailed() Method

Check to see if the bundle application is in an error state.

Declaration

public bool CheckFailed()

Return value

bool True if the bundle application is in an error state.

CloseSplashScreen() Method

Directs the Burn engine to dismiss the splash screen.

Declaration

public void CloseSplashScreen()

DetectAgain() Method

Requests the Burn engine re-execute detection after UIReady() was already called.

Declaration

public void DetectAgain()

DisallowRestart() Method

Directs the Burn engine to best-effort prevent restarts.

Declaration

public void DisallowRestart()

Error(int errorCode) Method

Sets the bundle error state.

Declaration

public bool Error(
int errorCode
)

Parameters

ParameterTypeDescription
errorCodeintError code to set.

Return value

bool True if the bundle is in an error state.

EvaluateCondition(string condition) Method

Request the Burn engine evalute a condition.

Declaration

public bool EvaluateCondition(
string condition
)

Parameters

ParameterTypeDescription
conditionstringCondition to evaluate.

Return value

bool Evaluation of condition.

FormatString(string format) Method

Request the Burn engine to resolve a string with variable references (“[VARNAME]”).

Declaration

public string FormatString(
string format
)

Parameters

ParameterTypeDescription
formatstringString with variable references to resolve.

Return value

string Formatted string.

GetBundleLogPath() Method

Get the path to the bundle log file.

Declaration

public string GetBundleLogPath()

GetCommandLineArguments() Method

Returns the bundle command-line arguments.

Declaration

public string[] GetCommandLineArguments()

Return value

string[] Array of command-line arguments.

GetManifest() Method

Returns the bundle manifest.

Declaration

public System.Xml.Linq.XDocument GetManifest()

Return value

System.Xml.Linq.XDocument XML document containing the bundle manifest.

GetNumericVariable(string name) Method

Gets a numeric variable.

Declaration

public long? GetNumericVariable(
string name
)

Parameters

ParameterTypeDescription
namestringName of variable to retrieve.

Return value

long? Long or null if the variable is not defined.

GetPackage(int index) Method

Gets a package by index.

Declaration

public BundlePackage GetPackage(
int index
)

Parameters

ParameterTypeDescription
indexintIndex of package to retrieve.

Return value

BundlePackage Bundle package.

GetPackage(string id) Method

Gets a package by identity.

Declaration

public BundlePackage GetPackage(
string id
)

Parameters

ParameterTypeDescription
idstringIdentity of package to retrieve.

Return value

BundlePackage Bundle package.

GetStringVariable(string name) Method

Gets a string variable.

Declaration

public string GetStringVariable(
string name
)

Parameters

ParameterTypeDescription
namestringName of variable to retrieve.

Return value

string String or null if the variable is not defined.

GetVersionVariable(string name) Method

Gets a version variable.

Declaration

public string GetVersionVariable(
string name
)

Parameters

ParameterTypeDescription
namestringName of variable to retrieve.

Return value

string Version or null if the variable is not defined.

Go() Method

Directs the bundle application to plan with the default PlanAction.

Declaration

public void Go()

GoWithAction(BundleAction action) Method

Directs the bundle applicaiton to plan a specific action.

Declaration

public void GoWithAction(
BundleAction action
)

Parameters

ParameterTypeDescription
actionBundleAction

LogError(int errorCode, string format, string[] args) Method

Log an error message to the bundle’s log file.

Declaration

public void LogError(
int errorCode,
string format,
string[] args
)

Parameters

ParameterTypeDescription
errorCodeintError code for the message
formatstringFormat string for the message.
argsstring[]Data to provide to the format.

LogMessage(string format, string[] args) Method

Log a message to the bundle’s log file.

Declaration

public void LogMessage(
string format,
string[] args
)

Parameters

ParameterTypeDescription
formatstringFormat string for the message.
argsstring[]Data to provide to the format.

ParseCommandLine() Method

Parse the bundle command-line for the pattern VARNAME=VALUE to assign variables.

Declaration

public void ParseCommandLine()

PromptCancel(string message, string caption) Method

Prompts the user to cancel with a specific cancel message.

Declaration

public bool PromptCancel(
string message,
string caption
)

Parameters

ParameterTypeDescription
messagestringMessage to display.
captionstringCaption of the cancel prompt.

Return value

bool True if the user chose to cancel.

SendCancelPrompt() Method

Requests the bundle application to prompt for cancel.

Declaration

public bool SendCancelPrompt()

Return value

bool True if the user chose to cancel.

SendEmbeddedError(int code, string message, int uiHint) Method

Send message to parent bundle when embedded.

Declaration

public int SendEmbeddedError(
int code,
string message,
int uiHint
)

Parameters

ParameterTypeDescription
codeintStatus code to send.
messagestringMessage to send.
uiHintintFlags to send.

Return value

int Result from parent bundle.

SetPlanFeatureRequestState(string packageId, string featureId, BundleFeatureState requestState) Method

Sets the requested state for a package’s feature. Must be called before calling Go() or GoWithAction().

Declaration

public void SetPlanFeatureRequestState(
string packageId,
string featureId,
BundleFeatureState requestState
)

Parameters

ParameterTypeDescription
packageIdstringIdentity of the package containing the feature.
featureIdstringIdentity of the feature to set plan state.
requestStateBundleFeatureStateRequested state to assign to feature.

SetPlanPackageRequestState(string packageId, BundleRequestState requestState) Method

Sets the requested state for a package. Must be called before calling Go() or GoWithAction().

Declaration

public void SetPlanPackageRequestState(
string packageId,
BundleRequestState requestState
)

Parameters

ParameterTypeDescription
packageIdstringIdentity of the package to set plan state.
requestStateBundleRequestStateRequested state to assign to package.

SetVariable(string name, string value) Method

Sets a string variable.

Declaration

public void SetVariable(
string name,
string value
)

Parameters

ParameterTypeDescription
namestringName of variable to set.
valuestringValue of variable to set.

SetVariable(string name, long value) Method

Sets a numeric variable.

Declaration

public void SetVariable(
string name,
long value
)

Parameters

ParameterTypeDescription
namestringName of variable to set.
valuelongValue of variable to set.

SetVersionVariable(string name, string value) Method

Sets a version variable.

Declaration

public void SetVersionVariable(
string name,
string value
)

Parameters

ParameterTypeDescription
namestringName of variable to set.
valuestringValue of variable to set.

UIReady() Method

Obsolete. This method is unused.

Declaration

public void UIReady()

AllowRestart Property

Indicates whether restarts are allowed.

Declaration

public bool AllowRestart { get; set; }

PackageCount Property

Count of packages in the bundle.

Declaration

public int PackageCount { get; set; }

Packages Property

Enumerates the packages in the bundle.

Declaration

public IEnumerable{BundlePackage} Packages { get; set; }

PlanAction Property

The default plan action set via the bundle command-line.

Declaration

public BundleAction PlanAction { get; set; }

RestartRequired Property

Indicates whether a restart was required.

Declaration

public bool RestartRequired { get; set; }

ResumeType Property

Resume type of the bundle.

Declaration

public BundleResumeType ResumeType { get; set; }

RollingBack Property

Indicates if the bundle application is rolling back.

Declaration

public bool RollingBack { get; set; }