4 instantiations of ContainerImagePushOptionsCallbackContext
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
1083var context = new ContainerImagePushOptionsCallbackContext
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
322var context = new ContainerImagePushOptionsCallbackContext 370var context = new ContainerImagePushOptionsCallbackContext 425var context = new ContainerImagePushOptionsCallbackContext
18 references to ContainerImagePushOptionsCallbackContext
Aspire.Hosting (12)
ApplicationModel\ContainerImagePushOptionsCallbackAnnotation.cs (6)
14/// Use <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/> 15/// or <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Func{ContainerImagePushOptionsCallbackContext, Task})"/> 26public ContainerImagePushOptionsCallbackAnnotation(Action<ContainerImagePushOptionsCallbackContext> callback) 42public ContainerImagePushOptionsCallbackAnnotation(Func<ContainerImagePushOptionsCallbackContext, Task> callback) 53/// An asynchronous function that accepts a <see cref="ContainerImagePushOptionsCallbackContext"/> and modifies 57public Func<ContainerImagePushOptionsCallbackContext, Task> Callback { get; }
ApplicationModel\ContainerImagePushOptionsCallbackContext.cs (1)
12/// This context is passed to callbacks registered via <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/>.
ApplicationModel\ResourceExtensions.cs (1)
1083var context = new ContainerImagePushOptionsCallbackContext
ResourceBuilderExtensions.cs (4)
3160/// The callback receives a <see cref="ContainerImagePushOptionsCallbackContext"/> that provides access to the resource 3178Action<ContainerImagePushOptionsCallbackContext> callback) 3198/// The callback receives a <see cref="ContainerImagePushOptionsCallbackContext"/> that provides access to the resource 3217Func<ContainerImagePushOptionsCallbackContext, Task> callback)
Aspire.Hosting.Tests (6)
ResourceExtensionsTests.cs (6)
322var context = new ContainerImagePushOptionsCallbackContext 349containerResource.WithImagePushOptions((Action<ContainerImagePushOptionsCallbackContext>)null!)); 370var context = new ContainerImagePushOptionsCallbackContext 388static void callback(ContainerImagePushOptionsCallbackContext context) => context.Options.RemoteImageTag = "test-tag"; 407var callback = async (ContainerImagePushOptionsCallbackContext context) => 425var context = new ContainerImagePushOptionsCallbackContext