19 writes to RemoteImageName
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (1)
1079RemoteImageName = resource.Name.ToLowerInvariant(),
ResourceBuilderExtensions.cs (1)
3229context.Options.RemoteImageName = remoteImageName;
Aspire.Hosting.Tests (17)
ContainerImagePushOptionsTests.cs (11)
16RemoteImageName = "myapp", 35RemoteImageName = "myapp", 54RemoteImageName = "myorg/myapp", 74RemoteImageName = "ghcr.io/myuser/myrepo", 94RemoteImageName = "localhost:5000/myapp", 113RemoteImageName = "localhost/myapp", 132RemoteImageName = "myapp", 151RemoteImageName = "myapp", 170RemoteImageName = null, 186RemoteImageName = "", 202RemoteImageName = "myapp",
ResourceExtensionsTests.cs (6)
311context.Options.RemoteImageName = "myrepo/myimage"; 319RemoteImageName = "", 360.WithImagePushOptions(context => context.Options.RemoteImageName = "myrepo/myimage"); 367RemoteImageName = "", 410context.Options.RemoteImageName = $"myrepo/{context.Resource.Name}"; 422RemoteImageName = "",
11 references to RemoteImageName
Aspire.Hosting (8)
ApplicationModel\ContainerImagePushOptions.cs (6)
13/// The <see cref="RemoteImageName"/> specifies the repository path (without registry endpoint or tag), 58/// <exception cref="InvalidOperationException">Thrown when <see cref="RemoteImageName"/> is <c>null</c> or empty.</exception> 66/// The <see cref="RemoteImageName"/> value is parsed to determine if it contains an override for the registry 67/// host or repository. If the <see cref="RemoteImageName"/> contains a host component (detected by the presence 76if (string.IsNullOrEmpty(RemoteImageName)) 86var (host, imagePath) = ParseImageReference(RemoteImageName);
ApplicationModel\ContainerImagePushOptionsCallbackContext.cs (1)
42/// Callbacks should modify the <see cref="ContainerImagePushOptions.RemoteImageName"/> and
ResourceBuilderExtensions.cs (1)
3207/// This is a convenience method that registers a callback to set the <see cref="ContainerImagePushOptions.RemoteImageName"/> property.
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
329Assert.Equal("myrepo/myimage", context.Options.RemoteImageName); 381Assert.Equal("myrepo/myimage", context.Options.RemoteImageName); 432Assert.Equal("myrepo/test-container", context.Options.RemoteImageName);