Skip to content

IBundleApplication Interface

Bundle application provided to support the BundleUI.

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.
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

Sets the bundle application to be canceled.

public void Cancel()

Check to see if the bundle application has been canceled.

public bool CheckCanceled()

bool True if the bundle application was canceled.

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

public bool CheckFailed()

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

Directs the Burn engine to dismiss the splash screen.

public void CloseSplashScreen()

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

public void DetectAgain()

Directs the Burn engine to best-effort prevent restarts.

public void DisallowRestart()

Sets the bundle error state.

public bool Error(
int errorCode
)
ParameterTypeDescription
errorCodeintError code to set.

bool True if the bundle is in an error state.

EvaluateCondition(string condition) Method

Section titled “EvaluateCondition(string condition) Method”

Request the Burn engine evalute a condition.

public bool EvaluateCondition(
string condition
)
ParameterTypeDescription
conditionstringCondition to evaluate.

bool Evaluation of condition.

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

public string FormatString(
string format
)
ParameterTypeDescription
formatstringString with variable references to resolve.

string Formatted string.

Get the path to the bundle log file.

public string GetBundleLogPath()

Returns the bundle command-line arguments.

public string[] GetCommandLineArguments()

string[] Array of command-line arguments.

Returns the bundle manifest.

public System.Xml.Linq.XDocument GetManifest()

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

Gets a numeric variable.

public long? GetNumericVariable(
string name
)
ParameterTypeDescription
namestringName of variable to retrieve.

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

Gets a package by index.

public BundlePackage GetPackage(
int index
)
ParameterTypeDescription
indexintIndex of package to retrieve.

BundlePackage Bundle package.

Gets a package by identity.

public BundlePackage GetPackage(
string id
)
ParameterTypeDescription
idstringIdentity of package to retrieve.

BundlePackage Bundle package.

Gets a string variable.

public string GetStringVariable(
string name
)
ParameterTypeDescription
namestringName of variable to retrieve.

string String or null if the variable is not defined.

Gets a version variable.

public string GetVersionVariable(
string name
)
ParameterTypeDescription
namestringName of variable to retrieve.

string Version or null if the variable is not defined.

Directs the bundle application to plan with the default PlanAction.

public void Go()

Directs the bundle applicaiton to plan a specific action.

public void GoWithAction(
BundleAction action
)
ParameterTypeDescription
actionBundleAction

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

Section titled “LogError(int errorCode, string format, string[] args) Method”

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

public void LogError(
int errorCode,
string format,
string[] args
)
ParameterTypeDescription
errorCodeintError code for the message
formatstringFormat string for the message.
argsstring[]Data to provide to the format.

LogMessage(string format, string[] args) Method

Section titled “LogMessage(string format, string[] args) Method”

Log a message to the bundle’s log file.

public void LogMessage(
string format,
string[] args
)
ParameterTypeDescription
formatstringFormat string for the message.
argsstring[]Data to provide to the format.

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

public void ParseCommandLine()

PromptCancel(string message, string caption) Method

Section titled “PromptCancel(string message, string caption) Method”

Prompts the user to cancel with a specific cancel message.

public bool PromptCancel(
string message,
string caption
)
ParameterTypeDescription
messagestringMessage to display.
captionstringCaption of the cancel prompt.

bool True if the user chose to cancel.

Requests the bundle application to prompt for cancel.

public bool SendCancelPrompt()

bool True if the user chose to cancel.

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

Section titled “SendEmbeddedError(int code, string message, int uiHint) Method”

Send message to parent bundle when embedded.

public int SendEmbeddedError(
int code,
string message,
int uiHint
)
ParameterTypeDescription
codeintStatus code to send.
messagestringMessage to send.
uiHintintFlags to send.

int Result from parent bundle.

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

Section titled “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().

public void SetPlanFeatureRequestState(
string packageId,
string featureId,
BundleFeatureState requestState
)
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

Section titled “SetPlanPackageRequestState(string packageId, BundleRequestState requestState) Method”

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

public void SetPlanPackageRequestState(
string packageId,
BundleRequestState requestState
)
ParameterTypeDescription
packageIdstringIdentity of the package to set plan state.
requestStateBundleRequestStateRequested state to assign to package.

SetVariable(string name, string value) Method

Section titled “SetVariable(string name, string value) Method”

Sets a string variable.

public void SetVariable(
string name,
string value
)
ParameterTypeDescription
namestringName of variable to set.
valuestringValue of variable to set.

SetVariable(string name, long value) Method

Section titled “SetVariable(string name, long value) Method”

Sets a numeric variable.

public void SetVariable(
string name,
long value
)
ParameterTypeDescription
namestringName of variable to set.
valuelongValue of variable to set.

SetVersionVariable(string name, string value) Method

Section titled “SetVersionVariable(string name, string value) Method”

Sets a version variable.

public void SetVersionVariable(
string name,
string value
)
ParameterTypeDescription
namestringName of variable to set.
valuestringValue of variable to set.

Obsolete. This method is unused.

public void UIReady()

Indicates whether restarts are allowed.

public bool AllowRestart { get; set; }

Count of packages in the bundle.

public int PackageCount { get; set; }

Enumerates the packages in the bundle.

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

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

public BundleAction PlanAction { get; set; }

Indicates whether a restart was required.

public bool RestartRequired { get; set; }

Resume type of the bundle.

public BundleResumeType ResumeType { get; set; }

Indicates if the bundle application is rolling back.

public bool RollingBack { get; set; }