1 instantiation of Service
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
74
var composeService = new
Service
24 references to Service
Aspire.Hosting.Docker (24)
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)
36
public static IResourceBuilder<T> PublishAsDockerComposeService<T>(this IResourceBuilder<T> builder, Action<DockerComposeServiceResource,
Service
> configure)
DockerComposeServiceResource.cs (11)
17
private
Service
? _composeService;
67
public
Service
ComposeService => _composeService ??= GetComposeService();
72
private
Service
GetComposeService()
74
var
composeService = new Service
110
private void SetContainerName(
Service
composeService)
118
private void SetEntryPoint(
Service
composeService)
131
private void SetDependsOn(
Service
composeService)
157
private static void SetContainerImage(string? containerImageName,
Service
composeService)
165
private void AddEnvironmentVariablesAndCommandLineArgs(
Service
composeService)
196
private void AddPorts(
Service
composeService)
212
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 (6)
449
/// <returns>The updated <see cref="
Service
"/> instance with the added volume.</returns>
450
public
Service
AddVolume(Volume volume)
461
/// <returns>The updated <see cref="
Service
"/> instance with the added volumes.</returns>
462
public
Service
AddVolumes(IEnumerable<Volume> volumes)
474
/// <returns>The updated <see cref="
Service
"/> instance with the added environmental variable.</returns>
475
public
Service
AddEnvironmentalVariable(string key, string? value)