1 type derived from EnvironmentCallbackAnnotation
Aspire.Hosting (1)
ApplicationModel\EnvironmentAnnotation.cs (1)
10internal sealed class EnvironmentAnnotation : EnvironmentCallbackAnnotation
5 instantiations of EnvironmentCallbackAnnotation
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
95return builder.WithAnnotation(new EnvironmentCallbackAnnotation(name, callback)); 110return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback)); 125return builder.WithAnnotation(new EnvironmentCallbackAnnotation(callback));
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
250builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) =>
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
373builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) =>
12 references to EnvironmentCallbackAnnotation
Aspire.Hosting (8)
ApplicationModel\EnvironmentCallbackAnnotation.cs (4)
17/// Initializes a new instance of the <see cref="EnvironmentCallbackAnnotation"/> class with the specified name and callback function. 35/// Initializes a new instance of the <see cref="EnvironmentCallbackAnnotation"/> class with the specified callback action. 50/// Initializes a new instance of the <see cref="EnvironmentCallbackAnnotation"/> class with the specified callback. 65/// Initializes a new instance of the <see cref="EnvironmentCallbackAnnotation"/> class with the specified callback.
ApplicationModel\ResourceExtensions.cs (2)
147public static bool TryGetEnvironmentVariables(this IResource resource, [NotNullWhen(true)] out IEnumerable<EnvironmentCallbackAnnotation>? environmentVariables) 327foreach (var callback in callbacks)
Publishing\ManifestPublishingContext.cs (2)
482/// Writes environment variables to the manifest base on the <see cref="IResource"/> resource's <see cref="EnvironmentCallbackAnnotation"/> annotations."/> 484/// <param name="resource">The <see cref="IResource"/> which contains <see cref="EnvironmentCallbackAnnotation"/> annotations.</param>
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
475if (resource.TryGetAnnotationsOfType<EnvironmentCallbackAnnotation>(out var environmentCallbacks)) 479foreach (var c in environmentCallbacks)
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
209Assert.True(functionsResource.TryGetAnnotationsOfType<EnvironmentCallbackAnnotation>(out var envAnnotations)); 212foreach (var envAnnotation in envAnnotations)