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