pulumi/sdk/dotnet/Pulumi/Deployment/InlineDeploymentSettings.cs
Josh Studt 22669d70fc
[sdk/dotnet] - Fix swallowed nested exceptions with inline program so they correctly bubble to consumer (#7323)
* resolve issue with exit code not bubbling up and inflight tasks swallowing exceptions

* update changelog

* refacter to reduce and centralize inline program exception flow complexity

* quick comments on new pulumi function return type
2021-06-21 15:45:26 -04:00

51 lines
1.2 KiB
C#

// Copyright 2016-2020, Pulumi Corporation
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
namespace Pulumi
{
internal class InlineDeploymentSettings
{
public ILogger? Logger { get; }
public string EngineAddr { get; }
public string MonitorAddr { get; }
public IDictionary<string, string> Config { get; }
public IEnumerable<string>? ConfigSecretKeys { get; }
public string Project { get; }
public string Stack { get; }
public int Parallel { get; }
public bool IsDryRun { get; }
public InlineDeploymentSettings(
ILogger? logger,
string engineAddr,
string monitorAddr,
IDictionary<string, string> config,
IEnumerable<string>? configSecretKeys,
string project,
string stack,
int parallel,
bool isDryRun)
{
Logger = logger;
EngineAddr = engineAddr;
MonitorAddr = monitorAddr;
Config = config;
ConfigSecretKeys = configSecretKeys;
Project = project;
Stack = stack;
Parallel = parallel;
IsDryRun = isDryRun;
}
}
}