81 implementations of IProjectMetadata
Aspire.Hosting.Azure.Tests (9)
AzureBicepResourceTests.cs (1)
2846private sealed class ProjectA : IProjectMetadata
AzureContainerAppsTests.cs (1)
1924private sealed class Project : IProjectMetadata
AzureFunctionsTests.cs (5)
164private sealed class TestProject : IProjectMetadata 181private sealed class TestProjectWithMalformedPort : IProjectMetadata 198private sealed class TestProjectWithPartialPort : IProjectMetadata 215private sealed class TestProjectWithoutPortArgument : IProjectMetadata 231private sealed class TestProjectWithMultiplePorts : IProjectMetadata
AzureProvisioningResourceExtensionsTests.cs (1)
99private sealed class Project : IProjectMetadata
AzureWebPubSubExtensionsTests.cs (1)
503private sealed class ProjectA : IProjectMetadata
Aspire.Hosting.Dapr.Tests (1)
DaprSchemaTests.cs (1)
31private sealed class ProjectA : IProjectMetadata
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
207private sealed class ProjectA : IProjectMetadata
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
311private sealed class ProjectA : IProjectMetadata
Aspire.Hosting.Tests (11)
Dashboard\DashboardResourceTests.cs (1)
525private sealed class DashboardProject : IProjectMetadata
Dcp\ApplicationExecutorTests.cs (1)
1094private sealed class TestProject : IProjectMetadata
ProjectResourceTests.cs (2)
658private sealed class TestProject : IProjectMetadata 665internal abstract class BaseProjectWithProfileAndConfig : IProjectMetadata
WithEndpointTests.cs (3)
600private sealed class TestProject : IProjectMetadata 606private sealed class ProjectA : IProjectMetadata 613private sealed class ProjectB : IProjectMetadata
WithEnvironmentTests.cs (2)
272private sealed class ProjectA : IProjectMetadata 279private sealed class ProjectB : IProjectMetadata
WithReferenceTests.cs (2)
311private sealed class ProjectA : IProjectMetadata 318private sealed class ProjectB : IProjectMetadata
AzureContainerApps.AppHost (1)
artifacts\obj\AzureContainerApps.AppHost\Debug\net8.0\Aspire\references\AzureContainerApps_ApiService.ProjectMetadata.g.cs (1)
8public class AzureContainerApps_ApiService : global::Aspire.Hosting.IProjectMetadata
AzureFunctionsEndToEnd.AppHost (2)
artifacts\obj\AzureFunctionsEndToEnd.AppHost\Debug\net8.0\Aspire\references\AzureFunctionsEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class AzureFunctionsEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\AzureFunctionsEndToEnd.AppHost\Debug\net8.0\Aspire\references\AzureFunctionsEndToEnd_Functions.ProjectMetadata.g.cs (1)
8public class AzureFunctionsEndToEnd_Functions : global::Aspire.Hosting.IProjectMetadata
AzureSearch.AppHost (1)
artifacts\obj\AzureSearch.AppHost\Debug\net8.0\Aspire\references\AzureSearch_ApiService.ProjectMetadata.g.cs (1)
8public class AzureSearch_ApiService : global::Aspire.Hosting.IProjectMetadata
AzureStorageEndToEnd.AppHost (1)
artifacts\obj\AzureStorageEndToEnd.AppHost\Debug\net8.0\Aspire\references\AzureStorageEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class AzureStorageEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
BicepSample.AppHost (1)
artifacts\obj\BicepSample.AppHost\Debug\net8.0\Aspire\references\BicepSample_ApiService.ProjectMetadata.g.cs (1)
8public class BicepSample_ApiService : global::Aspire.Hosting.IProjectMetadata
BrowserTelemetry.AppHost (1)
artifacts\obj\BrowserTelemetry.AppHost\Debug\net8.0\Aspire\references\BrowserTelemetry_Web.ProjectMetadata.g.cs (1)
8public class BrowserTelemetry_Web : global::Aspire.Hosting.IProjectMetadata
CdkSample.AppHost (1)
artifacts\obj\CdkSample.AppHost\Debug\net8.0\Aspire\references\CdkSample_ApiService.ProjectMetadata.g.cs (1)
8public class CdkSample_ApiService : global::Aspire.Hosting.IProjectMetadata
CosmosEndToEnd.AppHost (1)
artifacts\obj\CosmosEndToEnd.AppHost\Debug\net8.0\Aspire\references\CosmosEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class CosmosEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
Dapr.AppHost (3)
artifacts\obj\Dapr.AppHost\Debug\net8.0\Aspire\references\DaprServiceA.ProjectMetadata.g.cs (1)
8public class DaprServiceA : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Dapr.AppHost\Debug\net8.0\Aspire\references\DaprServiceB.ProjectMetadata.g.cs (1)
8public class DaprServiceB : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Dapr.AppHost\Debug\net8.0\Aspire\references\DaprServiceC.ProjectMetadata.g.cs (1)
8public class DaprServiceC : global::Aspire.Hosting.IProjectMetadata
DatabaseMigration.AppHost (2)
artifacts\obj\DatabaseMigration.AppHost\Debug\net8.0\Aspire\references\DatabaseMigration_ApiService.ProjectMetadata.g.cs (1)
8public class DatabaseMigration_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\DatabaseMigration.AppHost\Debug\net8.0\Aspire\references\DatabaseMigration_MigrationService.ProjectMetadata.g.cs (1)
8public class DatabaseMigration_MigrationService : global::Aspire.Hosting.IProjectMetadata
Elasticsearch.AppHost (1)
artifacts\obj\Elasticsearch.AppHost\Debug\net8.0\Aspire\references\Elasticsearch_ApiService.ProjectMetadata.g.cs (1)
8public class Elasticsearch_ApiService : global::Aspire.Hosting.IProjectMetadata
EventHubs.AppHost (2)
artifacts\obj\EventHubs.AppHost\Debug\net8.0\Aspire\references\EventHubsApi.ProjectMetadata.g.cs (1)
8public class EventHubsApi : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\EventHubs.AppHost\Debug\net8.0\Aspire\references\EventHubsConsumer.ProjectMetadata.g.cs (1)
8public class EventHubsConsumer : global::Aspire.Hosting.IProjectMetadata
KafkaBasic.AppHost (2)
artifacts\obj\KafkaBasic.AppHost\Debug\net8.0\Aspire\references\Consumer.ProjectMetadata.g.cs (1)
8public class Consumer : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\KafkaBasic.AppHost\Debug\net8.0\Aspire\references\Producer.ProjectMetadata.g.cs (1)
8public class Producer : global::Aspire.Hosting.IProjectMetadata
Keycloak.AppHost (2)
artifacts\obj\Keycloak.AppHost\Debug\net8.0\Aspire\references\Keycloak_ApiService.ProjectMetadata.g.cs (1)
8public class Keycloak_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Keycloak.AppHost\Debug\net8.0\Aspire\references\Keycloak_Web.ProjectMetadata.g.cs (1)
8public class Keycloak_Web : global::Aspire.Hosting.IProjectMetadata
MilvusPlayground.AppHost (1)
artifacts\obj\MilvusPlayground.AppHost\Debug\net8.0\Aspire\references\MilvusPlayground_ApiService.ProjectMetadata.g.cs (1)
8public class MilvusPlayground_ApiService : global::Aspire.Hosting.IProjectMetadata
Mongo.AppHost (1)
artifacts\obj\Mongo.AppHost\Debug\net8.0\Aspire\references\Mongo_ApiService.ProjectMetadata.g.cs (1)
8public class Mongo_ApiService : global::Aspire.Hosting.IProjectMetadata
MySqlDb.AppHost (1)
artifacts\obj\MySqlDb.AppHost\Debug\net8.0\Aspire\references\MySql_ApiService.ProjectMetadata.g.cs (1)
8public class MySql_ApiService : global::Aspire.Hosting.IProjectMetadata
Nats.AppHost (2)
artifacts\obj\Nats.AppHost\Debug\net8.0\Aspire\references\Nats_ApiService.ProjectMetadata.g.cs (1)
8public class Nats_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Nats.AppHost\Debug\net8.0\Aspire\references\Nats_Backend.ProjectMetadata.g.cs (1)
8public class Nats_Backend : global::Aspire.Hosting.IProjectMetadata
OpenAIEndToEnd.AppHost (1)
artifacts\obj\OpenAIEndToEnd.AppHost\Debug\net8.0\Aspire\references\OpenAIEndToEnd_WebStory.ProjectMetadata.g.cs (1)
8public class OpenAIEndToEnd_WebStory : global::Aspire.Hosting.IProjectMetadata
OracleEndToEnd.AppHost (1)
artifacts\obj\OracleEndToEnd.AppHost\Debug\net8.0\Aspire\references\OracleEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class OracleEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
Orleans.AppHost (2)
artifacts\obj\Orleans.AppHost\Debug\net8.0\Aspire\references\OrleansClient.ProjectMetadata.g.cs (1)
8public class OrleansClient : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Orleans.AppHost\Debug\net8.0\Aspire\references\OrleansServer.ProjectMetadata.g.cs (1)
8public class OrleansServer : global::Aspire.Hosting.IProjectMetadata
ParameterEndToEnd.AppHost (1)
artifacts\obj\ParameterEndToEnd.AppHost\Debug\net8.0\Aspire\references\ParameterEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class ParameterEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
PostgresEndToEnd.AppHost (1)
artifacts\obj\PostgresEndToEnd.AppHost\Debug\net8.0\Aspire\references\PostgresEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class PostgresEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
ProxylessEndToEnd.AppHost (1)
artifacts\obj\ProxylessEndToEnd.AppHost\Debug\net8.0\Aspire\references\ProxylessEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class ProxylessEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
Qdrant.AppHost (1)
artifacts\obj\Qdrant.AppHost\Debug\net8.0\Aspire\references\Qdrant_ApiService.ProjectMetadata.g.cs (1)
8public class Qdrant_ApiService : global::Aspire.Hosting.IProjectMetadata
Redis.AppHost (1)
artifacts\obj\Redis.AppHost\Debug\net8.0\Aspire\references\Redis_ApiService.ProjectMetadata.g.cs (1)
8public class Redis_ApiService : global::Aspire.Hosting.IProjectMetadata
Seq.AppHost (1)
artifacts\obj\Seq.AppHost\Debug\net8.0\Aspire\references\Seq_ApiService.ProjectMetadata.g.cs (1)
8public class Seq_ApiService : global::Aspire.Hosting.IProjectMetadata
SignalR.AppHost (1)
artifacts\obj\SignalR.AppHost\Debug\net8.0\Aspire\references\SignalRWeb.ProjectMetadata.g.cs (1)
8public class SignalRWeb : global::Aspire.Hosting.IProjectMetadata
SqlServerEndToEnd.AppHost (2)
artifacts\obj\SqlServerEndToEnd.AppHost\Debug\net8.0\Aspire\references\SqlServerEndToEnd_ApiService.ProjectMetadata.g.cs (1)
8public class SqlServerEndToEnd_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\SqlServerEndToEnd.AppHost\Debug\net8.0\Aspire\references\SqlServerEndToEnd_DbSetup.ProjectMetadata.g.cs (1)
8public class SqlServerEndToEnd_DbSetup : global::Aspire.Hosting.IProjectMetadata
Stress.AppHost (2)
artifacts\obj\Stress.AppHost\Debug\net8.0\Aspire\references\Stress_ApiService.ProjectMetadata.g.cs (1)
8public class Stress_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\Stress.AppHost\Debug\net8.0\Aspire\references\Stress_TelemetryService.ProjectMetadata.g.cs (1)
8public class Stress_TelemetryService : global::Aspire.Hosting.IProjectMetadata
TestingAppHost1.AppHost (2)
artifacts\obj\TestingAppHost1.AppHost\Debug\net8.0\Aspire\references\TestingAppHost1_MyWebApp.ProjectMetadata.g.cs (1)
8public class TestingAppHost1_MyWebApp : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestingAppHost1.AppHost\Debug\net8.0\Aspire\references\TestingAppHost1_MyWorker.ProjectMetadata.g.cs (1)
8public class TestingAppHost1_MyWorker : global::Aspire.Hosting.IProjectMetadata
TestProject.AppHost (5)
artifacts\obj\TestProject.AppHost\Debug\net8.0\Aspire\references\IntegrationServiceA.ProjectMetadata.g.cs (1)
8public class IntegrationServiceA : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestProject.AppHost\Debug\net8.0\Aspire\references\ServiceA.ProjectMetadata.g.cs (1)
8public class ServiceA : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestProject.AppHost\Debug\net8.0\Aspire\references\ServiceB.ProjectMetadata.g.cs (1)
8public class ServiceB : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestProject.AppHost\Debug\net8.0\Aspire\references\ServiceC.ProjectMetadata.g.cs (1)
8public class ServiceC : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestProject.AppHost\Debug\net8.0\Aspire\references\WorkerA.ProjectMetadata.g.cs (1)
8public class WorkerA : global::Aspire.Hosting.IProjectMetadata
TestShop.AppHost (6)
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\ApiGateway.ProjectMetadata.g.cs (1)
8public class ApiGateway : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\BasketService.ProjectMetadata.g.cs (1)
8public class BasketService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\CatalogDb.ProjectMetadata.g.cs (1)
8public class CatalogDb : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\CatalogService.ProjectMetadata.g.cs (1)
8public class CatalogService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\MyFrontend.ProjectMetadata.g.cs (1)
8public class MyFrontend : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\TestShop.AppHost\Debug\net8.0\Aspire\references\OrderProcessor.ProjectMetadata.g.cs (1)
8public class OrderProcessor : global::Aspire.Hosting.IProjectMetadata
WaitForSandbox.AppHost (3)
artifacts\obj\WaitForSandbox.AppHost\Debug\net8.0\Aspire\references\WaitFor_Frontend.ProjectMetadata.g.cs (1)
8public class WaitFor_Frontend : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\WaitForSandbox.AppHost\Debug\net8.0\Aspire\references\WaitForSandbox_ApiService.ProjectMetadata.g.cs (1)
8public class WaitForSandbox_ApiService : global::Aspire.Hosting.IProjectMetadata
artifacts\obj\WaitForSandbox.AppHost\Debug\net8.0\Aspire\references\WaitForSandbox_DbSetup.ProjectMetadata.g.cs (1)
8public class WaitForSandbox_DbSetup : global::Aspire.Hosting.IProjectMetadata
WebPubSub.AppHost (1)
artifacts\obj\WebPubSub.AppHost\Debug\net8.0\Aspire\references\WebPubSubWeb.ProjectMetadata.g.cs (1)
8public class WebPubSubWeb : global::Aspire.Hosting.IProjectMetadata
29 references to IProjectMetadata
Aspire.Hosting (20)
ApplicationModel\ProjectResourceExtensions.cs (2)
29public static IProjectMetadata GetProjectMetadata(this ProjectResource projectResource) 33return projectResource.Annotations.OfType<IProjectMetadata>().Single();
Dcp\ApplicationExecutor.cs (2)
1100if (!project.TryGetLastAnnotation<IProjectMetadata>(out var projectMetadata))
IProjectMetadata.cs (1)
30internal sealed class ProjectMetadata(string projectPath) : IProjectMetadata
ProjectResourceBuilderExtensions.cs (10)
33/// to types that implement the <see cref="IProjectMetadata"/> interface. 36/// Classes that implement the <see cref="IProjectMetadata"/> interface are generated when a .NET project is added as a reference 61public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name) where TProject : IProjectMetadata, new() 116/// to types that implement the <see cref="IProjectMetadata"/> interface. 119/// Classes that implement the <see cref="IProjectMetadata"/> interface are generated when a .NET project is added as a reference 141public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, string? launchProfileName) where TProject : IProjectMetadata, new() 204/// to types that implement the <see cref="IProjectMetadata"/> interface. 207/// Classes that implement the <see cref="IProjectMetadata"/> interface are generated when a .NET project is added as a reference 228public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<ProjectResourceOptions> configure) where TProject : IProjectMetadata, new() 625var projectMetadata = projectResource.GetProjectMetadata();
Publishing\ManifestPublishingContext.cs (2)
149if (!project.TryGetLastAnnotation<IProjectMetadata>(out var metadata))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
16if (!projectResource.TryGetLastAnnotation<IProjectMetadata>(out var projectMetadata)) 55private static LaunchSettings? GetLaunchSettings(this IProjectMetadata projectMetadata, string resourceName)
Aspire.Hosting.Azure.Functions (5)
AzureFunctionsProjectResourceExtensions.cs (2)
32/// <typeparam name="TProject">The type of the project metadata, which must implement <see cref="IProjectMetadata"/> and have a parameterless constructor.</typeparam> 36public static IResourceBuilder<AzureFunctionsProjectResource> AddAzureFunctionsProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name) where TProject : IProjectMetadata, new()
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
16if (!projectResource.TryGetLastAnnotation<IProjectMetadata>(out var projectMetadata)) 55private static LaunchSettings? GetLaunchSettings(this IProjectMetadata projectMetadata, string resourceName)
Aspire.Hosting.Tests (3)
KestrelConfigTests.cs (1)
351Action<ProjectResourceOptions>? configure = null) where TProject : IProjectMetadata, new()
ProjectResourceTests.cs (2)
75var serviceMetadata = Assert.Single(resource.Annotations.OfType<IProjectMetadata>());
Aspire.Playground.Tests (1)
Infrastructure\ResourceExtensions.cs (1)
15var metadata = project.GetProjectMetadata();