diff options
Diffstat (limited to 'src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs')
| -rw-r--r-- | src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs b/src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs index 25413790..82978b7d 100644 --- a/src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs +++ b/src/api/burn/WixToolset.BootstrapperApplicationApi/Engine.cs | |||
| @@ -12,7 +12,7 @@ namespace WixToolset.BootstrapperApplicationApi | |||
| 12 | /// </summary> | 12 | /// </summary> |
| 13 | public sealed class Engine : IEngine | 13 | public sealed class Engine : IEngine |
| 14 | { | 14 | { |
| 15 | private IBootstrapperEngine engine; | 15 | private readonly IBootstrapperEngine engine; |
| 16 | 16 | ||
| 17 | internal Engine(IBootstrapperEngine engine) | 17 | internal Engine(IBootstrapperEngine engine) |
| 18 | { | 18 | { |
| @@ -24,8 +24,7 @@ namespace WixToolset.BootstrapperApplicationApi | |||
| 24 | { | 24 | { |
| 25 | get | 25 | get |
| 26 | { | 26 | { |
| 27 | int count; | 27 | this.engine.GetPackageCount(out var count); |
| 28 | this.engine.GetPackageCount(out count); | ||
| 29 | 28 | ||
| 30 | return count; | 29 | return count; |
| 31 | } | 30 | } |
| @@ -110,8 +109,7 @@ namespace WixToolset.BootstrapperApplicationApi | |||
| 110 | /// <inheritdoc/> | 109 | /// <inheritdoc/> |
| 111 | public bool EvaluateCondition(string condition) | 110 | public bool EvaluateCondition(string condition) |
| 112 | { | 111 | { |
| 113 | bool value; | 112 | this.engine.EvaluateCondition(condition, out var value); |
| 114 | this.engine.EvaluateCondition(condition, out value); | ||
| 115 | 113 | ||
| 116 | return value; | 114 | return value; |
| 117 | } | 115 | } |
| @@ -247,9 +245,9 @@ namespace WixToolset.BootstrapperApplicationApi | |||
| 247 | } | 245 | } |
| 248 | 246 | ||
| 249 | /// <inheritdoc/> | 247 | /// <inheritdoc/> |
| 250 | public void Plan(LaunchAction action) | 248 | public void Plan(LaunchAction action, BundleScope plannedScope) |
| 251 | { | 249 | { |
| 252 | this.engine.Plan(action); | 250 | this.engine.Plan(action, plannedScope); |
| 253 | } | 251 | } |
| 254 | 252 | ||
| 255 | /// <inheritdoc/> | 253 | /// <inheritdoc/> |
| @@ -327,16 +325,16 @@ namespace WixToolset.BootstrapperApplicationApi | |||
| 327 | /// <inheritdoc/> | 325 | /// <inheritdoc/> |
| 328 | public int SendEmbeddedError(int errorCode, string message, int uiHint) | 326 | public int SendEmbeddedError(int errorCode, string message, int uiHint) |
| 329 | { | 327 | { |
| 330 | int result = 0; | 328 | this.engine.SendEmbeddedError(errorCode, message, uiHint, out var result); |
| 331 | this.engine.SendEmbeddedError(errorCode, message, uiHint, out result); | 329 | |
| 332 | return result; | 330 | return result; |
| 333 | } | 331 | } |
| 334 | 332 | ||
| 335 | /// <inheritdoc/> | 333 | /// <inheritdoc/> |
| 336 | public int SendEmbeddedProgress(int progressPercentage, int overallPercentage) | 334 | public int SendEmbeddedProgress(int progressPercentage, int overallPercentage) |
| 337 | { | 335 | { |
| 338 | int result = 0; | 336 | this.engine.SendEmbeddedProgress(progressPercentage, overallPercentage, out var result); |
| 339 | this.engine.SendEmbeddedProgress(progressPercentage, overallPercentage, out result); | 337 | |
| 340 | return result; | 338 | return result; |
| 341 | } | 339 | } |
| 342 | 340 | ||
