12 references to WithImagePushOptions
Aspire.Hosting (4)
ApplicationModel\ContainerImagePushOptionsCallbackAnnotation.cs (1)
14
/// Use <see cref="ResourceBuilderExtensions.
WithImagePushOptions
{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/>
ApplicationModel\ContainerImagePushOptionsCallbackContext.cs (1)
12
/// This context is passed to callbacks registered via <see cref="ResourceBuilderExtensions.
WithImagePushOptions
{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/>.
ResourceBuilderExtensions.cs (2)
3227
return builder.
WithImagePushOptions
(context =>
3262
return builder.
WithImagePushOptions
(context =>
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
310
.
WithImagePushOptions
(context =>
339
var ex = Assert.Throws<ArgumentNullException>(() => builder.
WithImagePushOptions
(context => { }));
350
containerResource.
WithImagePushOptions
((Action<ContainerImagePushOptionsCallbackContext>)null!));
360
.
WithImagePushOptions
(context => context.Options.RemoteImageTag = "tag1")
361
.
WithImagePushOptions
(context => context.Options.RemoteImageName = "myrepo/myimage");
392
.
WithImagePushOptions
(callback);
396
.
WithImagePushOptions
(callback);
400
.
WithImagePushOptions
(callback);