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