1 write to _spec
aspire (1)
Projects\GuestRuntime.cs (1)
42
_spec
= spec;
36 references to _spec
aspire (36)
Projects\GuestRuntime.cs (36)
53
public string Language =>
_spec
.Language;
58
public string DisplayName =>
_spec
.DisplayName;
64
public string? ExtensionLaunchCapability =>
_spec
.ExtensionLaunchCapability;
69
public string? CertificateBundleEnvironmentVariable =>
_spec
.CertificateBundleEnvironmentVariable;
82
if (
_spec
.Initialize is null or { Length: 0 })
84
_logger.LogDebug("No initialization configured for {Language}",
_spec
.Language);
88
foreach (var commandSpec in
_spec
.Initialize)
94
using var activity = _profilingTelemetry.StartGuestInitializeCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory);
106
activity.SetError($"{
_spec
.DisplayName} initialization exited with code {exitCode}.");
124
if (
_spec
.InstallDependencies is null)
126
_logger.LogDebug("No dependency installation configured for {Language}",
_spec
.Language);
130
var args = ReplacePlaceholders(
_spec
.InstallDependencies.Args, null, directory, null);
131
var environmentVariables =
_spec
.InstallDependencies.EnvironmentVariables ?? new Dictionary<string, string>();
134
using var activity = _profilingTelemetry.StartGuestInstallDependencies(
_spec
.Language,
_spec
.DisplayName,
_spec
.InstallDependencies.Command, args, directory);
136
_spec
.InstallDependencies.Command,
146
activity.SetError($"{
_spec
.DisplayName} dependency installation exited with code {exitCode}.");
180
var useWatchCommand = watchMode &&
_spec
.WatchExecute is not null;
182
?
_spec
.WatchExecute!
183
:
_spec
.Execute;
223
var commandSpec =
_spec
.PublishExecute ??
_spec
.Execute;
235
var phase =
_spec
.PublishExecute is not null
248
if (
_spec
.PreExecute is null or { Length: 0 })
254
foreach (var commandSpec in
_spec
.PreExecute)
267
using var activity = _profilingTelemetry.StartGuestExecuteCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute);
272
activity.SetError($"{
_spec
.DisplayName} pre-execution exited with code {exitCode}.");
548
using var activity = _profilingTelemetry.StartGuestExecuteCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory, phase);
553
activity.SetError($"{
_spec
.DisplayName} execution exited with code {exitCode}.");
581
if (
_spec
.MigrationFiles is null or { Count: 0 })
586
foreach (var (fileName, content) in
_spec
.MigrationFiles)
601
_spec
.Language,