1 type derived from EnvironmentCallbackAnnotation
Aspire.Hosting (1)
ApplicationModel\EnvironmentAnnotation.cs (1)
10
internal sealed class EnvironmentAnnotation :
EnvironmentCallbackAnnotation
5 instantiations of EnvironmentCallbackAnnotation
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
94
return builder.WithAnnotation(new
EnvironmentCallbackAnnotation
(name, callback));
109
return builder.WithAnnotation(new
EnvironmentCallbackAnnotation
(callback));
124
return builder.WithAnnotation(new
EnvironmentCallbackAnnotation
(callback));
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
151
builder.WithAnnotation(new
EnvironmentCallbackAnnotation
((EnvironmentCallbackContext context) =>
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
156
new
EnvironmentCallbackAnnotation
(
16 references to EnvironmentCallbackAnnotation
Aspire.Hosting (12)
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)
145
public static bool TryGetEnvironmentVariables(this IResource resource, [NotNullWhen(true)] out IEnumerable<
EnvironmentCallbackAnnotation
>? environmentVariables)
196
foreach (
var
callback in callbacks)
Dcp\ApplicationExecutor.cs (2)
1355
foreach (
var
ann in envVarAnnotations)
1633
foreach (
var
v in containerEnvironmentVariables)
Publishing\ManifestPublishingContext.cs (4)
480
/// Writes environment variables to the manifest base on the <see cref="IResource"/> resource's <see cref="
EnvironmentCallbackAnnotation
"/> annotations."/>
482
/// <param name="resource">The <see cref="IResource"/> which contains <see cref="
EnvironmentCallbackAnnotation
"/> annotations.</param>
489
if (resource.TryGetAnnotationsOfType<
EnvironmentCallbackAnnotation
>(out var callbacks))
492
foreach (
var
callback in callbacks)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
476
if (resource.TryGetAnnotationsOfType<
EnvironmentCallbackAnnotation
>(out var environmentCallbacks))
480
foreach (
var
c in environmentCallbacks)
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
226
daprCli.Annotations.AddRange(daprSidecar.Annotations.OfType<
EnvironmentCallbackAnnotation
>());
Aspire.Hosting.Tests (1)
Utils\EnvironmentVariableEvaluator.cs (1)
28
foreach (
var
callback in callbacks)