IBundleApplication Interface
Bundle application provided to support the BundleUI.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| 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
Section titled “Properties”| Property | Description |
|---|---|
| AllowRestart | Indicates whether restarts are allowed. |
| PackageCount | Count of packages in the bundle. |
| Packages | Enumerates the packages in the bundle. |
| PlanAction | The default plan action set via the bundle command-line. |
| RestartRequired | Indicates whether a restart was required. |
| ResumeType | Resume type of the bundle. |
| RollingBack | Indicates if the bundle application is rolling back. |
FireGiant.BundleApplicationFramework v6.0.1
Cancel() Method
Section titled “Cancel() Method”Sets the bundle application to be canceled.
Declaration
Section titled “Declaration”public void Cancel()CheckCanceled() Method
Section titled “CheckCanceled() Method”Check to see if the bundle application has been canceled.
Declaration
Section titled “Declaration”public bool CheckCanceled()Return value
Section titled “Return value”bool True if the bundle application was canceled.
CheckFailed() Method
Section titled “CheckFailed() Method”Check to see if the bundle application is in an error state.
Declaration
Section titled “Declaration”public bool CheckFailed()Return value
Section titled “Return value”bool True if the bundle application is in an error state.
CloseSplashScreen() Method
Section titled “CloseSplashScreen() Method”Directs the Burn engine to dismiss the splash screen.
Declaration
Section titled “Declaration”public void CloseSplashScreen()DetectAgain() Method
Section titled “DetectAgain() Method”Requests the Burn engine re-execute detection after UIReady() was already called.
Declaration
Section titled “Declaration”public void DetectAgain()DisallowRestart() Method
Section titled “DisallowRestart() Method”Directs the Burn engine to best-effort prevent restarts.
Declaration
Section titled “Declaration”public void DisallowRestart()Error(int errorCode) Method
Section titled “Error(int errorCode) Method”Sets the bundle error state.
Declaration
Section titled “Declaration”public bool Error( int errorCode)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| errorCode | int | Error code to set. |
Return value
Section titled “Return value”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.
Declaration
Section titled “Declaration”public bool EvaluateCondition( string condition)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| condition | string | Condition to evaluate. |
Return value
Section titled “Return value”bool Evaluation of condition.
FormatString(string format) Method
Section titled “FormatString(string format) Method”Request the Burn engine to resolve a string with variable references (“[VARNAME]”).
Declaration
Section titled “Declaration”public string FormatString( string format)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| format | string | String with variable references to resolve. |
Return value
Section titled “Return value”string Formatted string.
GetBundleLogPath() Method
Section titled “GetBundleLogPath() Method”Get the path to the bundle log file.
Declaration
Section titled “Declaration”public string GetBundleLogPath()GetCommandLineArguments() Method
Section titled “GetCommandLineArguments() Method”Returns the bundle command-line arguments.
Declaration
Section titled “Declaration”public string[] GetCommandLineArguments()Return value
Section titled “Return value”string[] Array of command-line arguments.
GetManifest() Method
Section titled “GetManifest() Method”Returns the bundle manifest.
Declaration
Section titled “Declaration”public System.Xml.Linq.XDocument GetManifest()Return value
Section titled “Return value”System.Xml.Linq.XDocument XML document containing the bundle manifest.
GetNumericVariable(string name) Method
Section titled “GetNumericVariable(string name) Method”Gets a numeric variable.
Declaration
Section titled “Declaration”public long? GetNumericVariable( string name)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to retrieve. |
Return value
Section titled “Return value”long? Long or null if the variable is not defined.
GetPackage(int index) Method
Section titled “GetPackage(int index) Method”Gets a package by index.
Declaration
Section titled “Declaration”public BundlePackage GetPackage( int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | Index of package to retrieve. |
Return value
Section titled “Return value”BundlePackage Bundle package.
GetPackage(string id) Method
Section titled “GetPackage(string id) Method”Gets a package by identity.
Declaration
Section titled “Declaration”public BundlePackage GetPackage( string id)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| id | string | Identity of package to retrieve. |
Return value
Section titled “Return value”BundlePackage Bundle package.
GetStringVariable(string name) Method
Section titled “GetStringVariable(string name) Method”Gets a string variable.
Declaration
Section titled “Declaration”public string GetStringVariable( string name)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to retrieve. |
Return value
Section titled “Return value”string String or null if the variable is not defined.
GetVersionVariable(string name) Method
Section titled “GetVersionVariable(string name) Method”Gets a version variable.
Declaration
Section titled “Declaration”public string GetVersionVariable( string name)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to retrieve. |
Return value
Section titled “Return value”string Version or null if the variable is not defined.
Go() Method
Section titled “Go() Method”Directs the bundle application to plan with the default PlanAction.
Declaration
Section titled “Declaration”public void Go()GoWithAction(BundleAction action) Method
Section titled “GoWithAction(BundleAction action) Method”Directs the bundle applicaiton to plan a specific action.
Declaration
Section titled “Declaration”public void GoWithAction( BundleAction action)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| action | BundleAction |
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.
Declaration
Section titled “Declaration”public void LogError( int errorCode, string format, string[] args)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| errorCode | int | Error code for the message |
| format | string | Format string for the message. |
| args | string[] | 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.
Declaration
Section titled “Declaration”public void LogMessage( string format, string[] args)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| format | string | Format string for the message. |
| args | string[] | Data to provide to the format. |
ParseCommandLine() Method
Section titled “ParseCommandLine() Method”Parse the bundle command-line for the pattern VARNAME=VALUE to assign variables.
Declaration
Section titled “Declaration”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.
Declaration
Section titled “Declaration”public bool PromptCancel( string message, string caption)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| message | string | Message to display. |
| caption | string | Caption of the cancel prompt. |
Return value
Section titled “Return value”bool True if the user chose to cancel.
SendCancelPrompt() Method
Section titled “SendCancelPrompt() Method”Requests the bundle application to prompt for cancel.
Declaration
Section titled “Declaration”public bool SendCancelPrompt()Return value
Section titled “Return value”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.
Declaration
Section titled “Declaration”public int SendEmbeddedError( int code, string message, int uiHint)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| code | int | Status code to send. |
| message | string | Message to send. |
| uiHint | int | Flags to send. |
Return value
Section titled “Return value”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().
Declaration
Section titled “Declaration”public void SetPlanFeatureRequestState( string packageId, string featureId, BundleFeatureState requestState)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| packageId | string | Identity of the package containing the feature. |
| featureId | string | Identity of the feature to set plan state. |
| requestState | BundleFeatureState | Requested 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().
Declaration
Section titled “Declaration”public void SetPlanPackageRequestState( string packageId, BundleRequestState requestState)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| packageId | string | Identity of the package to set plan state. |
| requestState | BundleRequestState | Requested state to assign to package. |
SetVariable(string name, string value) Method
Section titled “SetVariable(string name, string value) Method”Sets a string variable.
Declaration
Section titled “Declaration”public void SetVariable( string name, string value)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to set. |
| value | string | Value of variable to set. |
SetVariable(string name, long value) Method
Section titled “SetVariable(string name, long value) Method”Sets a numeric variable.
Declaration
Section titled “Declaration”public void SetVariable( string name, long value)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to set. |
| value | long | Value of variable to set. |
SetVersionVariable(string name, string value) Method
Section titled “SetVersionVariable(string name, string value) Method”Sets a version variable.
Declaration
Section titled “Declaration”public void SetVersionVariable( string name, string value)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | string | Name of variable to set. |
| value | string | Value of variable to set. |
UIReady() Method
Section titled “UIReady() Method”Obsolete. This method is unused.
Declaration
Section titled “Declaration”public void UIReady()AllowRestart Property
Section titled “AllowRestart Property”Indicates whether restarts are allowed.
Declaration
Section titled “Declaration”public bool AllowRestart { get; set; }PackageCount Property
Section titled “PackageCount Property”Count of packages in the bundle.
Declaration
Section titled “Declaration”public int PackageCount { get; set; }Packages Property
Section titled “Packages Property”Enumerates the packages in the bundle.
Declaration
Section titled “Declaration”public IEnumerable{BundlePackage} Packages { get; set; }PlanAction Property
Section titled “PlanAction Property”The default plan action set via the bundle command-line.
Declaration
Section titled “Declaration”public BundleAction PlanAction { get; set; }RestartRequired Property
Section titled “RestartRequired Property”Indicates whether a restart was required.
Declaration
Section titled “Declaration”public bool RestartRequired { get; set; }ResumeType Property
Section titled “ResumeType Property”Resume type of the bundle.
Declaration
Section titled “Declaration”public BundleResumeType ResumeType { get; set; }RollingBack Property
Section titled “RollingBack Property”Indicates if the bundle application is rolling back.
Declaration
Section titled “Declaration”public bool RollingBack { get; set; }