1 write to Spec
Aspire.Hosting (1)
Dcp\Model\ModelCommon.cs (1)
142
Spec
= spec;
41 references to Spec
Aspire.Hosting (41)
Dcp\DcpExecutor.cs (21)
587
.Where(sr => !sr.Service.HasCompleteAddress && sr.Service.
Spec
.AddressAllocationMode != AddressAllocationModes.Proxyless)
732
svc.
Spec
.Port = port;
733
svc.
Spec
.Protocol = PortProtocol.FromProtocolType(endpoint.Protocol);
734
svc.
Spec
.Address = endpoint.TargetHost switch
739
svc.
Spec
.AddressAllocationMode = endpoint.IsProxied ? AddressAllocationModes.Localhost : AddressAllocationModes.Proxyless;
769
exe.
Spec
.WorkingDirectory = executable.WorkingDirectory;
770
exe.
Spec
.ExecutionType = ExecutionType.Process;
801
exeSpec.
Spec
.WorkingDirectory = Path.GetDirectoryName(projectMetadata.ProjectPath);
818
exeSpec.
Spec
.ExecutionType = ExecutionType.IDE;
828
exeSpec.
Spec
.ExecutionType = ExecutionType.Process;
981
spec = exe.
Spec
;
1029
ctr.
Spec
.ContainerName = containerObjectInstance.Name; // Use the same name for container orchestrator (Docker, Podman) resource and DCP object name.
1033
ctr.
Spec
.Persistent = true;
1043
ctr.
Spec
.VolumeMounts = [];
1055
ctr.
Spec
.VolumeMounts.Add(volumeSpec);
1059
ctr.
Spec
.Networks = new List<ContainerNetworkConnection>
1160
var spec = dcpContainerResource.
Spec
;
1219
dcpContainerResource.
Spec
.Build = new()
1260
dcpContainerResource.
Spec
.Build = new()
1388
patch = CreatePatch(c, obj => obj.
Spec
.Stop = true);
1392
patch = CreatePatch(e, obj => obj.
Spec
.Stop = true);
Dcp\Model\ExecutableReplicaSet.cs (1)
109
ers.
Spec
.Template.Spec.ExecutablePath = executablePath;
Dcp\Model\Service.cs (6)
87
public int? AllocatedPort =>
Spec
.Port ?? Status?.EffectivePort;
88
public string? AllocatedAddress =>
Spec
.Address ?? Status?.EffectiveAddress;
95
Spec
.Port = other.
Spec
.Port;
96
Spec
.Address = other.
Spec
.Address;
Dcp\ResourceSnapshotBuilder.cs (13)
26
var environment = GetEnvironmentVariables(container.Status?.EffectiveEnv ?? container.
Spec
.Env, container.
Spec
.Env);
47
new(KnownProperties.Container.Image, container.
Spec
.Image),
49
new(KnownProperties.Container.Command, container.
Spec
.Command),
67
if (container.
Spec
.Ports is null)
73
foreach (var port in container.
Spec
.Ports)
85
return (container.
Spec
.Persistent ?? false) ? ContainerLifetime.Persistent : ContainerLifetime.Session;
104
var environment = GetEnvironmentVariables(executable.Status?.EffectiveEnv, executable.
Spec
.Env);
122
new(KnownProperties.Executable.Path, executable.
Spec
.ExecutablePath),
123
new(KnownProperties.Executable.WorkDir, executable.
Spec
.WorkingDirectory),
145
new(KnownProperties.Executable.Path, executable.
Spec
.ExecutablePath),
146
new(KnownProperties.Executable.WorkDir, executable.
Spec
.WorkingDirectory),
265
return container.
Spec
.VolumeMounts?.Select(v => new VolumeSnapshot(v.Source, v.Target ?? "", v.Type, v.IsReadOnly)).ToImmutableArray() ?? [];