2 writes to Callback
Aspire.Hosting (2)
ApplicationModel\DeploymentImageTagAnnotation.cs (2)
40Callback = context => Task.FromResult(callback(context)); 49Callback = callback ?? throw new ArgumentNullException(nameof(callback));
9 references to Callback
Aspire.Hosting (1)
ApplicationModel\ContainerImageReference.cs (1)
51tag = await deploymentTag.Callback(context).ConfigureAwait(false);
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
338var result = await annotation.Callback(context); 380Assert.Equal("tag1", await annotations[0].Callback(context)); 381Assert.Equal("tag2", await annotations[1].Callback(context)); 424Assert.Equal("tag-1", await annotation.Callback(context)); 425Assert.Equal("tag-2", await annotation.Callback(context)); 426Assert.Equal("tag-3", await annotation.Callback(context)); 443Assert.NotNull(annotation.Callback); 451var result = await annotation.Callback(context);