4 instantiations of ContainerImagePushOptionsCallbackContext
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
1112
var context = new
ContainerImagePushOptionsCallbackContext
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
323
var context = new
ContainerImagePushOptionsCallbackContext
371
var context = new
ContainerImagePushOptionsCallbackContext
426
var 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})"/>
26
public ContainerImagePushOptionsCallbackAnnotation(Action<
ContainerImagePushOptionsCallbackContext
> callback)
42
public ContainerImagePushOptionsCallbackAnnotation(Func<
ContainerImagePushOptionsCallbackContext
, Task> callback)
53
/// An asynchronous function that accepts a <see cref="
ContainerImagePushOptionsCallbackContext
"/> and modifies
57
public 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)
1112
var
context = new ContainerImagePushOptionsCallbackContext
ResourceBuilderExtensions.cs (4)
3132
/// The callback receives a <see cref="
ContainerImagePushOptionsCallbackContext
"/> that provides access to the resource
3150
Action<
ContainerImagePushOptionsCallbackContext
> callback)
3170
/// The callback receives a <see cref="
ContainerImagePushOptionsCallbackContext
"/> that provides access to the resource
3189
Func<
ContainerImagePushOptionsCallbackContext
, Task> callback)
Aspire.Hosting.Tests (6)
ResourceExtensionsTests.cs (6)
323
var
context = new ContainerImagePushOptionsCallbackContext
350
containerResource.WithImagePushOptions((Action<
ContainerImagePushOptionsCallbackContext
>)null!));
371
var
context = new ContainerImagePushOptionsCallbackContext
389
static void callback(
ContainerImagePushOptionsCallbackContext
context) => context.Options.RemoteImageTag = "test-tag";
408
var callback = async (
ContainerImagePushOptionsCallbackContext
context) =>
426
var
context = new ContainerImagePushOptionsCallbackContext