1 write to _spec
aspire (1)
Projects\GuestRuntime.cs (1)
52
_spec
= spec;
31 references to _spec
aspire (31)
Projects\GuestRuntime.cs (31)
71
public string Language =>
_spec
.Language;
76
public string DisplayName =>
_spec
.DisplayName;
82
public string? ExtensionLaunchCapability =>
_spec
.ExtensionLaunchCapability;
87
public string? CertificateBundleEnvironmentVariable =>
_spec
.CertificateBundleEnvironmentVariable;
100
if (
_spec
.Initialize is null or { Length: 0 })
102
_logger.LogDebug("No initialization configured for {Language}",
_spec
.Language);
106
foreach (var commandSpec in
_spec
.Initialize)
112
using var activity = _profilingTelemetry.StartGuestInitializeCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory);
124
activity.SetError($"{
_spec
.DisplayName} initialization exited with code {exitCode}.");
148
_logger.LogDebug("No dependency installation configured for {Language}",
_spec
.Language);
160
_spec
.Language,
161
_spec
.DisplayName,
176
activity.SetError($"{
_spec
.DisplayName} dependency installation exited with code {exitCode}.");
214
var useWatchCommand = watchMode &&
_spec
.WatchExecute is not null;
216
?
_spec
.WatchExecute!
217
:
_spec
.Execute;
257
var commandSpec =
_spec
.PublishExecute ??
_spec
.Execute;
269
var phase =
_spec
.PublishExecute is not null
282
if (
_spec
.PreExecute is null or { Length: 0 })
288
foreach (var commandSpec in
_spec
.PreExecute)
301
using var activity = _profilingTelemetry.StartGuestExecuteCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute);
306
activity.SetError($"{
_spec
.DisplayName} pre-execution exited with code {exitCode}.");
592
using var activity = _profilingTelemetry.StartGuestExecuteCommand(
_spec
.Language,
_spec
.DisplayName, commandSpec.Command, args, directory, phase);
597
activity.SetError($"{
_spec
.DisplayName} execution exited with code {exitCode}.");
630
if (
_spec
.MigrationFiles is null or { Count: 0 })
635
foreach (var (fileName, content) in
_spec
.MigrationFiles)
650
_spec
.Language,