1 interface inheriting from IResourceAnnotation
Aspire.Hosting (1)
IProjectMetadata.cs (1)
13public interface IProjectMetadata : IResourceAnnotation
31 implementations of IResourceAnnotation
Aspire.Hosting (16)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
9public class CommandLineArgsCallbackAnnotation : IResourceAnnotation
ApplicationModel\ContainerImageAnnotation.cs (1)
12public sealed class ContainerImageAnnotation : IResourceAnnotation
ApplicationModel\ContainerLifetimeAnnotation.cs (1)
37public sealed class ContainerLifetimeAnnotation : IResourceAnnotation
ApplicationModel\ContainerMountAnnotation.cs (1)
13public sealed class ContainerMountAnnotation : IResourceAnnotation
ApplicationModel\ContainerNameAnnotation.cs (1)
12public sealed class ContainerNameAnnotation : IResourceAnnotation
ApplicationModel\ContainerRuntimeArgsCallbackAnnotation.cs (1)
12public sealed class ContainerRuntimeArgsCallbackAnnotation : IResourceAnnotation
ApplicationModel\DisableForwardedHeadersAnnotation.cs (1)
12public sealed class DisableForwardedHeadersAnnotation : IResourceAnnotation
ApplicationModel\EndpointAnnotation.cs (1)
16public sealed class EndpointAnnotation : IResourceAnnotation
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
12public class EnvironmentCallbackAnnotation : IResourceAnnotation
ApplicationModel\ExcludeLifecycleCommandsAnnotation.cs (1)
9internal sealed class ExcludeLifecycleCommandsAnnotation : IResourceAnnotation
ApplicationModel\Http2ServiceAnnotation.cs (1)
9internal sealed class Http2ServiceAnnotation : IResourceAnnotation
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
11public class ManifestPublishingCallbackAnnotation : IResourceAnnotation
ApplicationModel\ResourceCommandAnnotation.cs (1)
12public sealed class ResourceCommandAnnotation : IResourceAnnotation
src\Shared\LaunchProfiles\DefaultLaunchProfileAnnotation.cs (1)
9internal sealed class DefaultLaunchProfileAnnotation : IResourceAnnotation
src\Shared\LaunchProfiles\ExcludeLaunchProfileAnnotation.cs (1)
9internal sealed class ExcludeLaunchProfileAnnotation : IResourceAnnotation
src\Shared\LaunchProfiles\LaunchProfileAnnotation.cs (1)
9internal sealed class LaunchProfileAnnotation : IResourceAnnotation
Aspire.Hosting.Azure.Functions (3)
src\Shared\LaunchProfiles\DefaultLaunchProfileAnnotation.cs (1)
9internal sealed class DefaultLaunchProfileAnnotation : IResourceAnnotation
src\Shared\LaunchProfiles\ExcludeLaunchProfileAnnotation.cs (1)
9internal sealed class ExcludeLaunchProfileAnnotation : IResourceAnnotation
src\Shared\LaunchProfiles\LaunchProfileAnnotation.cs (1)
9internal sealed class LaunchProfileAnnotation : IResourceAnnotation
Aspire.Hosting.Azure.Tests (6)
AzurePostgresExtensionsTests.cs (2)
385private sealed class Dummy1Annotation : IResourceAnnotation 389private sealed class Dummy2Annotation : IResourceAnnotation
AzureRedisExtensionsTests.cs (2)
190private sealed class Dummy1Annotation : IResourceAnnotation 194private sealed class Dummy2Annotation : IResourceAnnotation
AzureSqlExtensionsTests.cs (2)
233private sealed class Dummy1Annotation : IResourceAnnotation 237private sealed class Dummy2Annotation : IResourceAnnotation
Aspire.Hosting.Dapr (3)
DaprComponentReferenceAnnotation.cs (1)
12public sealed record DaprComponentReferenceAnnotation(IDaprComponentResource Component) : IResourceAnnotation
DaprSidecarAnnotation.cs (1)
11public sealed record DaprSidecarAnnotation(IDaprSidecarResource Sidecar) : IResourceAnnotation
DaprSidecarOptionsAnnotation.cs (1)
11public sealed record DaprSidecarOptionsAnnotation(DaprSidecarOptions Options) : IResourceAnnotation
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (2)
272private sealed class DummyAnnotation : IResourceAnnotation 277private sealed class AnotherDummyAnnotation : IResourceAnnotation
Utils\WithAnnotationTests.cs (1)
54public class DummyAnnotation : IResourceAnnotation
23 references to IResourceAnnotation
Aspire.Hosting (20)
ApplicationModel\ConnectionStringRedirectAnnotation.cs (1)
10public class ConnectionStringRedirectAnnotation(IResourceWithConnectionString resource) : IResourceAnnotation
ApplicationModel\DcpInstancesAnnotation.cs (1)
11internal class DcpInstancesAnnotation(ImmutableArray<DcpInstance> instances) : IResourceAnnotation
ApplicationModel\DeploymentTargetAnnotation.cs (1)
9public sealed class DeploymentTargetAnnotation(IResource target) : IResourceAnnotation
ApplicationModel\DockerfileBuildAnnotation.cs (1)
12public class DockerfileBuildAnnotation(string contextPath, string dockerfilePath, string? stage) : IResourceAnnotation
ApplicationModel\EndpointEnvironmentInjectionFilterAnnotation.cs (1)
9internal class EndpointEnvironmentInjectionFilterAnnotation(Func<EndpointAnnotation, bool> filter) : IResourceAnnotation
ApplicationModel\EndpointReferenceAnnotation.cs (1)
9internal sealed class EndpointReferenceAnnotation(IResourceWithEndpoints resource) : IResourceAnnotation
ApplicationModel\HealthCheckAnnotation.cs (1)
13public class HealthCheckAnnotation(string key) : IResourceAnnotation
ApplicationModel\IResourceBuilder.cs (2)
29IResourceBuilder<T> WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation, new() => WithAnnotation(new TAnnotation(), behavior); 39IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation;
ApplicationModel\ReplicaAnnotation.cs (1)
13public sealed class ReplicaAnnotation(int replicas = 1) : IResourceAnnotation
ApplicationModel\ResourceAnnotationCollection.cs (1)
11public sealed class ResourceAnnotationCollection : Collection<IResourceAnnotation>
ApplicationModel\ResourceExtensions.cs (5)
20public static bool TryGetLastAnnotation<T>(this IResource resource, [NotNullWhen(true)] out T? annotation) where T : IResourceAnnotation 41public static bool TryGetAnnotationsOfType<T>(this IResource resource, [NotNullWhen(true)] out IEnumerable<T>? result) where T : IResourceAnnotation 63public static bool HasAnnotationOfType<T>(this IResource resource) where T : IResourceAnnotation 75public static bool TryGetAnnotationsIncludingAncestorsOfType<T>(this IResource resource, [NotNullWhen(true)] out IEnumerable<T>? result) where T : IResourceAnnotation 112public static bool HasAnnotationIncludingAncestorsOfType<T>(this IResource resource) where T : IResourceAnnotation
ApplicationModel\ResourceRelationshipAnnotation.cs (1)
12public sealed class ResourceRelationshipAnnotation(IResource resource, string type) : IResourceAnnotation
ApplicationModel\ResourceSnapshotAnnotation.cs (1)
9public class ResourceSnapshotAnnotation(CustomResourceSnapshot initialSnapshot) : IResourceAnnotation
ApplicationModel\WaitAnnotation.cs (1)
18public sealed class WaitAnnotation(IResource resource, WaitType waitType, int exitCode = 0) : IResourceAnnotation
DistributedApplicationResourceBuilder.cs (1)
14public IResourceBuilder<T> WithAnnotation<TAnnotation>(TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) where TAnnotation : IResourceAnnotation
Aspire.Hosting.Azure (1)
BicepResourceAnnotation.cs (1)
31public class AzureBicepResourceAnnotation(AzureBicepResource resource) : IResourceAnnotation
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppCustomizationAnnotation.cs (1)
12public sealed class AzureContainerAppCustomizationAnnotation(Action<AzureResourceInfrastructure, ContainerApp> configure) : IResourceAnnotation
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
86foreach (var annotation in Annotations)