1 instantiation of Service
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
114var composeService = new Service
27 references to Service
Aspire.Hosting.Docker (27)
DockerComposePublishingContext.cs (2)
103var composeService = serviceResource.BuildComposeService(); 174private void HandleComposeFileConfig(ComposeFile composeFile, Service composeService, ContainerFileSystemItem? item, int? uid, int? gid, UnixFileMode umask, string path)
DockerComposeServiceCustomizationAnnotation.cs (2)
16public sealed class DockerComposeServiceCustomizationAnnotation(Action<DockerComposeServiceResource, Service> configure) : IResourceAnnotation 22public Action<DockerComposeServiceResource, Service> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
DockerComposeServiceExtensions.cs (1)
34public static IResourceBuilder<T> PublishAsDockerComposeService<T>(this IResourceBuilder<T> builder, Action<DockerComposeServiceResource, Service> configure)
DockerComposeServiceResource.cs (10)
112internal Service BuildComposeService() 114var composeService = new Service 147private void SetContainerName(Service composeService) 155private void SetEntryPoint(Service composeService) 168private void SetPullPolicy(Service composeService) 183private void SetDependsOn(Service composeService) 209private static void SetContainerImage(string? containerImageName, Service composeService) 217private void AddEnvironmentVariablesAndCommandLineArgs(Service composeService) 271private void AddPorts(Service composeService) 312private 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. 54public Dictionary<string, Service> Services { get; set; } = []; 125public ComposeFile AddService(Service service)
Resources\ComposeNodes\Service.cs (8)
460/// <returns>The updated <see cref="Service"/> instance with the added volume.</returns> 461public Service AddVolume(Volume volume) 472/// <returns>The updated <see cref="Service"/> instance with the added volumes.</returns> 473public Service AddVolumes(IEnumerable<Volume> volumes) 485/// <returns>The updated <see cref="Service"/> instance with the added environmental variable.</returns> 486public Service AddEnvironmentalVariable(string key, string? value) 499/// <returns>The updated <see cref="Service"/> instance with the added environmental variable.</returns> 500public Service AddConfig(ConfigReference config)