1 instantiation of Service
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
115
var composeService = new
Service
27 references to Service
Aspire.Hosting.Docker (27)
DockerComposePublishingContext.cs (2)
103
var
composeService = await serviceResource.BuildComposeServiceAsync().ConfigureAwait(false);
174
private void HandleComposeFileConfig(ComposeFile composeFile,
Service
composeService, ContainerFileSystemItem? item, int? uid, int? gid, UnixFileMode umask, string path)
DockerComposeServiceCustomizationAnnotation.cs (2)
16
public sealed class DockerComposeServiceCustomizationAnnotation(Action<DockerComposeServiceResource,
Service
> configure) : IResourceAnnotation
22
public Action<DockerComposeServiceResource,
Service
> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
DockerComposeServiceExtensions.cs (1)
35
public static IResourceBuilder<T> PublishAsDockerComposeService<T>(this IResourceBuilder<T> builder, Action<DockerComposeServiceResource,
Service
> configure)
DockerComposeServiceResource.cs (10)
113
internal async Task<
Service
> BuildComposeServiceAsync()
115
var
composeService = new Service
148
private void SetContainerName(
Service
composeService)
156
private void SetEntryPoint(
Service
composeService)
169
private void SetPullPolicy(
Service
composeService)
184
private void SetDependsOn(
Service
composeService)
210
private static void SetContainerImage(string? containerImageName,
Service
composeService)
218
private async Task AddEnvironmentVariablesAndCommandLineArgsAsync(
Service
composeService)
272
private void AddPorts(
Service
composeService)
313
private void AddVolumes(
Service
composeService)
Resources\ComposeFile.cs (4)
42
/// as defined by the <see cref="
Service
"/> class.
51
/// is a <see cref="
Service
"/> object containing the configuration of the service.
54
public Dictionary<string,
Service
> Services { get; set; } = [];
125
public ComposeFile AddService(
Service
service)
Resources\ComposeNodes\Service.cs (8)
461
/// <returns>The updated <see cref="
Service
"/> instance with the added volume.</returns>
462
public
Service
AddVolume(Volume volume)
473
/// <returns>The updated <see cref="
Service
"/> instance with the added volumes.</returns>
474
public
Service
AddVolumes(IEnumerable<Volume> volumes)
486
/// <returns>The updated <see cref="
Service
"/> instance with the added environmental variable.</returns>
487
public
Service
AddEnvironmentalVariable(string key, string? value)
500
/// <returns>The updated <see cref="
Service
"/> instance with the added environmental variable.</returns>
501
public
Service
AddConfig(ConfigReference config)