4 instantiations of ContainerImagePushOptionsCallbackContext
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
1329
var context = new
ContainerImagePushOptionsCallbackContext
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
364
var context = new
ContainerImagePushOptionsCallbackContext
412
var context = new
ContainerImagePushOptionsCallbackContext
467
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)
1329
var
context = new ContainerImagePushOptionsCallbackContext
ResourceBuilderExtensions.cs (4)
5227
/// The callback receives a <see cref="
ContainerImagePushOptionsCallbackContext
"/> that provides access to the resource
5246
Action<
ContainerImagePushOptionsCallbackContext
> callback)
5267
/// The callback receives a <see cref="
ContainerImagePushOptionsCallbackContext
"/> that provides access to the resource
5287
Func<
ContainerImagePushOptionsCallbackContext
, Task> callback)
Aspire.Hosting.Tests (6)
ResourceExtensionsTests.cs (6)
364
var
context = new ContainerImagePushOptionsCallbackContext
391
containerResource.WithImagePushOptions((Action<
ContainerImagePushOptionsCallbackContext
>)null!));
412
var
context = new ContainerImagePushOptionsCallbackContext
430
static void callback(
ContainerImagePushOptionsCallbackContext
context) => context.Options.RemoteImageTag = "test-tag";
449
var callback = async (
ContainerImagePushOptionsCallbackContext
context) =>
467
var
context = new ContainerImagePushOptionsCallbackContext