878 instantiations of AspireExport
Aspire.Hosting (211)
Ats\CollectionExports.cs (18)
33[AspireExport("Dict.get", Description = "Gets a value from a dictionary")]
43[AspireExport("Dict.set", Description = "Sets a value in a dictionary")]
53[AspireExport("Dict.remove", Description = "Removes a key from a dictionary")]
62[AspireExport("Dict.keys", Description = "Gets all keys from a dictionary")]
72[AspireExport("Dict.has", Description = "Checks if a dictionary contains a key")]
81[AspireExport("Dict.count", Description = "Gets the number of entries in a dictionary")]
89[AspireExport("Dict.clear", Description = "Clears all entries from a dictionary")]
98[AspireExport("Dict.values", Description = "Gets all values from a dictionary")]
107[AspireExport("Dict.toObject", Description = "Converts a dictionary to a plain object")]
121[AspireExport("List.get", Description = "Gets an item from a list by index")]
131[AspireExport("List.set", Description = "Sets an item in a list at a specific index")]
145[AspireExport("List.add", Description = "Adds an item to the end of a list")]
155[AspireExport("List.removeAt", Description = "Removes an item at a specific index from a list")]
171[AspireExport("List.length", Description = "Gets the number of items in a list")]
179[AspireExport("List.clear", Description = "Clears all items from a list")]
189[AspireExport("List.insert", Description = "Inserts an item at a specific index in a list")]
204[AspireExport("List.indexOf", Description = "Gets the index of an item in a list")]
213[AspireExport("List.toArray", Description = "Converts a list to an array")]
ContainerResourceBuilderExtensions.cs (19)
93[AspireExport("addContainer", Description = "Adds a container resource")]
253[AspireExport("withBindMount", Description = "Adds a bind mount")]
273[AspireExport("withEntrypoint", Description = "Sets the container entrypoint")]
290[AspireExport("withImageTag", Description = "Sets the container image tag")]
321[AspireExport("withImageRegistry", Description = "Sets the container image registry")]
343[AspireExport("withImage", Description = "Sets the container image")]
410[AspireExport("withImageSHA256", Description = "Sets the image SHA256 digest")]
435[AspireExport("withContainerRuntimeArgs", Description = "Adds runtime arguments for the container")]
508[AspireExport("withLifetime", Description = "Sets the lifetime behavior of the container resource")]
523[AspireExport("withImagePullPolicy", Description = "Sets the container image pull policy")]
540[AspireExport("publishAsContainer", Description = "Configures the resource to be published as a container")]
585[AspireExport("withDockerfile", Description = "Configures the resource to use a Dockerfile")]
819[AspireExport("addDockerfile", Description = "Adds a container resource built from a Dockerfile")]
1002[AspireExport("withContainerName", Description = "Sets the container name")]
1094[AspireExport("withBuildArg", Description = "Adds a build argument from a parameter resource")]
1142[AspireExport("withBuildSecret", Description = "Adds a build secret from a parameter resource")]
1385[AspireExport("withEndpointProxySupport", Description = "Configures endpoint proxy support")]
1579[AspireExport("withDockerfileBaseImage", Description = "Sets the base image for a Dockerfile build")]
1614[AspireExport("withContainerNetworkAlias", Description = "Adds a network alias for the container")]
ResourceBuilderExtensions.cs (54)
33[AspireExport("withEnvironment", Description = "Sets an environment variable")]
91[AspireExport("withEnvironmentExpression", Description = "Adds an environment variable with a reference expression")]
133[AspireExport("withEnvironmentCallback", Description = "Sets environment variables via callback")]
149[AspireExport("withEnvironmentCallbackAsync", Description = "Sets environment variables via async callback")]
166[AspireExport("withEnvironmentEndpoint", Description = "Sets an environment variable from an endpoint reference")]
233[AspireExport("withEnvironmentParameter", Description = "Sets an environment variable from a parameter resource")]
256[AspireExport("withEnvironmentConnectionString", Description = "Sets an environment variable from a connection string resource")]
318[AspireExport("withConnectionProperty", Description = "Adds a connection property with a reference expression")]
336[AspireExport("withConnectionPropertyValue", Description = "Adds a connection property with a string value")]
352[AspireExport("withArgs", Description = "Adds arguments")]
387[AspireExport("withArgsCallback", Description = "Sets command-line arguments via callback")]
407[AspireExport("withArgsCallbackAsync", Description = "Sets command-line arguments via async callback")]
569[AspireExport("withReference", Description = "Adds a reference to another resource")]
654[AspireExport("withServiceReference", Description = "Adds a service discovery reference to another resource")]
675[AspireExport("withServiceReferenceNamed", Description = "Adds a named service discovery reference")]
696[AspireExport("withReferenceUri", Description = "Adds a reference to a URI")]
749[AspireExport("withReferenceExternalService", Description = "Adds a reference to an external service")]
825[AspireExport("withReferenceEndpoint", Description = "Adds a reference to an endpoint")]
957[AspireExport("withEndpoint", Description = "Adds a network endpoint")]
1033[AspireExport("withHttpEndpoint", Description = "Adds an HTTP endpoint")]
1054[AspireExport("withHttpsEndpoint", Description = "Adds an HTTPS endpoint")]
1068[AspireExport("withExternalHttpEndpoints", Description = "Makes HTTP endpoints externally accessible")]
1115[AspireExport("getEndpoint", Description = "Gets an endpoint reference")]
1129[AspireExport("asHttp2Service", Description = "Configures resource for HTTP/2")]
1184[AspireExport("withUrlsCallback", Description = "Customizes displayed URLs via callback")]
1208[AspireExport("withUrlsCallbackAsync", Description = "Customizes displayed URLs via async callback")]
1246[AspireExport("withUrl", Description = "Adds or modifies displayed URLs")]
1310[AspireExport("withUrlExpression", Description = "Adds a URL using a reference expression")]
1366[AspireExport("withUrlForEndpoint", Description = "Customizes the URL for a specific endpoint via callback")]
1413[AspireExport("withUrlForEndpointFactory", Description = "Adds a URL for a specific endpoint via factory callback")]
1441[AspireExport("publishWithContainerFiles", Description = "Configures the resource to copy container files from the specified source during publishing")]
1471[AspireExport("withContainerFilesSource", Description = "Sets the source directory for container files")]
1491[AspireExport("clearContainerFilesSources", Description = "Clears all container file sources")]
1511[AspireExport("excludeFromManifest", Description = "Excludes the resource from the deployment manifest")]
1546[AspireExport("waitFor", Description = "Waits for another resource to be ready")]
1589[AspireExport("waitForWithBehavior", Description = "Waits for another resource with specific behavior")]
1654[AspireExport("waitForStart", Description = "Waits for another resource to start")]
1695[AspireExport("waitForStartWithBehavior", Description = "Waits for another resource to start with specific behavior")]
1766[AspireExport("withExplicitStart", Description = "Prevents resource from starting automatically")]
1798[AspireExport("waitForCompletion", Description = "Waits for resource completion")]
1855[AspireExport("withHealthCheck", Description = "Adds a health check by key")]
1900[AspireExport("withHttpHealthCheck", Description = "Adds an HTTP health check")]
2052[AspireExport("withCommand", Description = "Adds a resource command")]
2463[AspireExport("withDeveloperCertificateTrust", Description = "Configures developer certificate trust")]
2512[AspireExport("withCertificateTrustScope", Description = "Sets the certificate trust scope")]
2588[AspireExport("withHttpsDeveloperCertificate", Description = "Configures HTTPS with a developer certificate")]
2655[AspireExport("withoutHttpsCertificate", Description = "Removes HTTPS certificate configuration")]
2988[AspireExport("withParentRelationship", Description = "Sets the parent relationship")]
3052[AspireExport("withChildRelationship", Description = "Sets a child relationship")]
3123[AspireExport("withIconName", Description = "Sets the icon for the resource")]
3237[AspireExport("withHttpProbe", Description = "Adds an HTTP health probe to the resource")]
3327[AspireExport("excludeFromMcp", Description = "Excludes the resource from MCP server exposure")]
3436[AspireExport("withRemoteImageName", Description = "Sets the remote image name for publishing")]
3472[AspireExport("withRemoteImageTag", Description = "Sets the remote image tag for publishing")]
Aspire.Hosting.Azure (35)
AzureBicepResourceExtensions.cs (13)
23[AspireExport("addBicepTemplate", Description = "Adds an Azure Bicep template resource from a file")]
40[AspireExport("addBicepTemplateString", Description = "Adds an Azure Bicep template resource from inline Bicep content")]
55[AspireExport("getOutput", Description = "Gets an output reference from an Azure Bicep template resource")]
81[AspireExport("withEnvironmentFromOutput", Description = "Sets an environment variable from a Bicep output reference")]
119[AspireExport("withEnvironmentFromKeyVaultSecret", Description = "Sets an environment variable from an Azure Key Vault secret reference")]
136[AspireExport("withParameter", Description = "Adds a Bicep parameter without a value")]
153[AspireExport("withParameterStringValue", Description = "Adds a Bicep parameter with a string value")]
170[AspireExport("withParameterStringValues", Description = "Adds a Bicep parameter with a string list value")]
223[AspireExport("withParameterFromParameter", Description = "Adds a Bicep parameter from a parameter resource builder")]
259[AspireExport("withParameterFromConnectionString", Description = "Adds a Bicep parameter from a connection string resource builder")]
279[AspireExport("withParameterFromOutput", Description = "Adds a Bicep parameter from another Bicep output reference")]
299[AspireExport("withParameterFromReferenceExpression", Description = "Adds a Bicep parameter from a reference expression")]
319[AspireExport("withParameterFromEndpoint", Description = "Adds a Bicep parameter from an endpoint reference")]
Aspire.Hosting.Azure.AppConfiguration (6)
Aspire.Hosting.Azure.AppContainers (15)
Aspire.Hosting.Azure.ApplicationInsights (2)
Aspire.Hosting.Azure.AppService (12)
Aspire.Hosting.Azure.CognitiveServices (5)
Aspire.Hosting.Azure.ContainerRegistry (5)
Aspire.Hosting.Azure.CosmosDB (13)
AzureCosmosDBExtensions.cs (13)
35[AspireExport("addAzureCosmosDB", Description = "Adds an Azure Cosmos DB resource")]
60[AspireExport("runAsEmulator", Description = "Configures the Azure Cosmos DB resource to run using the local emulator", RunSyncOnBackgroundThread = true)]
74[AspireExport("runAsPreviewEmulator", Description = "Configures the Azure Cosmos DB resource to run using the preview emulator", RunSyncOnBackgroundThread = true)]
236[AspireExport("withDataVolume", Description = "Adds a named volume for the data folder to an Azure Cosmos DB emulator resource")]
253[AspireExport("withGatewayPort", Description = "Sets the host port for the Cosmos DB emulator gateway endpoint")]
273[AspireExport("withPartitionCount", Description = "Sets the partition count for the Azure Cosmos DB emulator")]
317[AspireExport("addCosmosDatabase", Description = "Adds an Azure Cosmos DB database resource")]
340[AspireExport("addContainer", Description = "Adds an Azure Cosmos DB container resource")]
364[AspireExport("addContainerWithPartitionKeyPaths", Description = "Adds an Azure Cosmos DB container resource with hierarchical partition keys")]
396[AspireExport("withDefaultAzureSku", Description = "Configures Azure Cosmos DB to use the default Azure SKU")]
412[AspireExport("withDataExplorer", Description = "Exposes the Data Explorer endpoint for the preview emulator")]
475[AspireExport("withAccessKeyAuthentication", Description = "Configures Azure Cosmos DB to use access key authentication")]
506[AspireExport("withAccessKeyAuthenticationWithKeyVault", Description = "Configures Azure Cosmos DB access key authentication using a specified Azure Key Vault resource")]
Aspire.Hosting.Azure.EventHubs (9)
AzureEventHubsExtensions.cs (8)
40[AspireExport("addAzureEventHubs", Description = "Adds an Azure Event Hubs namespace resource")]
155[AspireExport("addHub", Description = "Adds an Azure Event Hub resource")]
176[AspireExport("withProperties", Description = "Configures properties of an Azure Event Hub", RunSyncOnBackgroundThread = true)]
194[AspireExport("addConsumerGroup", Description = "Adds an Azure Event Hub consumer group resource")]
240[AspireExport("runAsEmulator", Description = "Configures the Azure Event Hubs resource to run with the local emulator", RunSyncOnBackgroundThread = true)]
407[AspireExport("withHostPort", Description = "Sets the host port for the Event Hubs emulator endpoint")]
424[AspireExport("withConfigurationFile", Description = "Sets the emulator configuration file path")]
532[AspireExport("withEventHubsRoleAssignments", Description = "Assigns Event Hubs roles to a resource")]
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (7)
Aspire.Hosting.Azure.Kusto (7)
Aspire.Hosting.Azure.Network (17)
AzureVirtualNetworkExtensions.cs (11)
31[AspireExport("addAzureVirtualNetwork", Description = "Adds an Azure Virtual Network resource to the application model.")]
62[AspireExport("addAzureVirtualNetworkFromParameter", MethodName = "addAzureVirtualNetwork", Description = "Adds an Azure Virtual Network resource to the application model with a parameterized address prefix.")]
170[AspireExport("addSubnet", Description = "Adds an Azure subnet resource to an Azure Virtual Network resource.")]
204[AspireExport("addSubnetFromParameter", MethodName = "addSubnet", Description = "Adds an Azure subnet resource with a parameterized address prefix to an Azure Virtual Network resource.")]
259[AspireExport("withSubnetDelegatedSubnet", MethodName = "withDelegatedSubnet", Description = "Associates a delegated Azure subnet resource with an Azure resource that supports subnet delegation.")]
301[AspireExport("withNatGateway", Description = "Associates an Azure NAT Gateway resource with an Azure subnet resource.")]
333[AspireExport("withNetworkSecurityGroup", Description = "Associates an Azure Network Security Group resource with an Azure subnet resource.")]
375[AspireExport("allowInbound", Description = "Adds an inbound allow rule to the Azure subnet resource's Network Security Group.")]
402[AspireExport("denyInbound", Description = "Adds an inbound deny rule to the Azure subnet resource's Network Security Group.")]
429[AspireExport("allowOutbound", Description = "Adds an outbound allow rule to the Azure subnet resource's Network Security Group.")]
456[AspireExport("denyOutbound", Description = "Adds an outbound deny rule to the Azure subnet resource's Network Security Group.")]
Aspire.Hosting.Azure.OperationalInsights (1)
Aspire.Hosting.Azure.PostgreSQL (6)
Aspire.Hosting.Azure.Redis (5)
Aspire.Hosting.Azure.Search (2)
Aspire.Hosting.Azure.ServiceBus (14)
AzureServiceBusExtensions.cs (11)
40[AspireExport("addAzureServiceBus", Description = "Adds an Azure Service Bus namespace resource")]
169[AspireExport("addServiceBusQueue", Description = "Adds an Azure Service Bus queue resource")]
190[AspireExport("withQueueProperties", MethodName = "withProperties", Description = "Configures properties of an Azure Service Bus queue", RunSyncOnBackgroundThread = true)]
252[AspireExport("addServiceBusTopic", Description = "Adds an Azure Service Bus topic resource")]
273[AspireExport("withTopicProperties", MethodName = "withProperties", Description = "Configures properties of an Azure Service Bus topic", RunSyncOnBackgroundThread = true)]
322[AspireExport("addServiceBusSubscription", Description = "Adds an Azure Service Bus subscription resource")]
343[AspireExport("withSubscriptionProperties", MethodName = "withProperties", Description = "Configures properties of an Azure Service Bus subscription", RunSyncOnBackgroundThread = true)]
379[AspireExport("runAsEmulator", Description = "Configures the Azure Service Bus resource to run with the local emulator", RunSyncOnBackgroundThread = true)]
516[AspireExport("withConfigurationFile", Description = "Sets the emulator configuration file path")]
565[AspireExport("withHostPort", Description = "Sets the host port for the Service Bus emulator endpoint")]
685[AspireExport("withServiceBusRoleAssignments", Description = "Assigns Service Bus roles to a resource")]
Aspire.Hosting.Azure.SignalR (3)
Aspire.Hosting.Azure.Sql (7)
Aspire.Hosting.Azure.Storage (16)
AzureStorageExtensions.cs (16)
39[AspireExport("addAzureStorage", Description = "Adds an Azure Storage resource")]
177[AspireExport("runAsEmulator", Description = "Configures the Azure Storage resource to be emulated using Azurite", RunSyncOnBackgroundThread = true)]
272[AspireExport("withDataBindMount", Description = "Adds a bind mount for the data folder to an Azure Storage emulator resource")]
287[AspireExport("withDataVolume", Description = "Adds a named volume for the data folder to an Azure Storage emulator resource")]
301[AspireExport("withBlobPort", Description = "Sets the host port for blob requests on the storage emulator")]
318[AspireExport("withQueuePort", Description = "Sets the host port for queue requests on the storage emulator")]
335[AspireExport("withTablePort", Description = "Sets the host port for table requests on the storage emulator")]
352[AspireExport("withApiVersionCheck", Description = "Configures whether the emulator checks API version validity")]
377[AspireExport("addBlobs", Description = "Adds an Azure Blob Storage resource")]
399[AspireExport("addDataLake", Description = "Adds an Azure Data Lake Storage resource")]
464[AspireExport("addBlobContainer", Description = "Adds an Azure Blob Storage container resource")]
501[AspireExport("addDataLakeFileSystem", Description = "Adds an Azure Data Lake Storage file system resource")]
560[AspireExport("addTables", Description = "Adds an Azure Table Storage resource")]
575[AspireExport("addQueues", Description = "Adds an Azure Queue Storage resource")]
612[AspireExport("addQueue", Description = "Adds an Azure Storage queue resource")]
713[AspireExport("withStorageRoleAssignments", Description = "Assigns Azure Storage roles to a resource")]
Aspire.Hosting.Azure.WebPubSub (4)
Aspire.Hosting.CodeGeneration.Go.Tests (35)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (32)
16[AspireExport("addTestRedis", Description = "Adds a test Redis resource")]
49[AspireExport("addTestChildDatabase", Description = "Adds a child database to a test Redis resource")]
65[AspireExport("withPersistence", Description = "Configures the Redis resource with persistence")]
87[AspireExport("withOptionalString", Description = "Adds an optional string parameter")]
392[AspireExport("withConfig", Description = "Configures the resource with a DTO")]
403[AspireExport("getTags", Description = "Gets the tags for the resource")]
412[AspireExport("getMetadata", Description = "Gets the metadata for the resource")]
421[AspireExport("withConnectionString", Description = "Sets the connection string using a reference expression")]
433[AspireExport("testWithEnvironmentCallback", Description = "Configures environment with callback (test version)")]
444[AspireExport("withCreatedAt", Description = "Sets the created timestamp")]
455[AspireExport("withModifiedAt", Description = "Sets the modified timestamp")]
466[AspireExport("withCorrelationId", Description = "Sets the correlation ID")]
477[AspireExport("withOptionalCallback", Description = "Configures with optional callback")]
489[AspireExport("withStatus", Description = "Sets the resource status")]
500[AspireExport("withNestedConfig", Description = "Configures with nested DTO")]
511[AspireExport("withValidator", Description = "Adds validation callback")]
523[AspireExport("testWaitFor", Description = "Waits for another resource (test version)")]
534[AspireExport("getEndpoints", Description = "Gets the endpoints")]
547[AspireExport("withConnectionStringDirect", Description = "Sets connection string using direct interface target")]
560[AspireExport("withRedisSpecific", Description = "Redis-specific configuration")]
572[AspireExport("withDependency", Description = "Adds a dependency on another resource")]
583[AspireExport("withEndpoints", Description = "Sets the endpoints")]
594[AspireExport("withEnvironmentVariables", Description = "Sets environment variables")]
607[AspireExport("getStatusAsync", Description = "Gets the status of the resource asynchronously")]
618[AspireExport("withCancellableOperation", Description = "Performs a cancellable operation")]
629[AspireExport("waitForReadyAsync", Description = "Waits for the resource to be ready")]
643[AspireExport("withMultiParamHandleCallback", Description = "Tests multi-param callback destructuring")]
657[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
671[AspireExport("withDataVolume", Description = "Adds a data volume")]
684[AspireExport("addTestVault", Description = "Adds a test vault resource")]
697[AspireExport("withVaultDirect", Description = "Configures vault using direct interface target")]
733[AspireExport(ExposeProperties = true)]
Aspire.Hosting.CodeGeneration.Java.Tests (35)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (32)
16[AspireExport("addTestRedis", Description = "Adds a test Redis resource")]
49[AspireExport("addTestChildDatabase", Description = "Adds a child database to a test Redis resource")]
65[AspireExport("withPersistence", Description = "Configures the Redis resource with persistence")]
87[AspireExport("withOptionalString", Description = "Adds an optional string parameter")]
392[AspireExport("withConfig", Description = "Configures the resource with a DTO")]
403[AspireExport("getTags", Description = "Gets the tags for the resource")]
412[AspireExport("getMetadata", Description = "Gets the metadata for the resource")]
421[AspireExport("withConnectionString", Description = "Sets the connection string using a reference expression")]
433[AspireExport("testWithEnvironmentCallback", Description = "Configures environment with callback (test version)")]
444[AspireExport("withCreatedAt", Description = "Sets the created timestamp")]
455[AspireExport("withModifiedAt", Description = "Sets the modified timestamp")]
466[AspireExport("withCorrelationId", Description = "Sets the correlation ID")]
477[AspireExport("withOptionalCallback", Description = "Configures with optional callback")]
489[AspireExport("withStatus", Description = "Sets the resource status")]
500[AspireExport("withNestedConfig", Description = "Configures with nested DTO")]
511[AspireExport("withValidator", Description = "Adds validation callback")]
523[AspireExport("testWaitFor", Description = "Waits for another resource (test version)")]
534[AspireExport("getEndpoints", Description = "Gets the endpoints")]
547[AspireExport("withConnectionStringDirect", Description = "Sets connection string using direct interface target")]
560[AspireExport("withRedisSpecific", Description = "Redis-specific configuration")]
572[AspireExport("withDependency", Description = "Adds a dependency on another resource")]
583[AspireExport("withEndpoints", Description = "Sets the endpoints")]
594[AspireExport("withEnvironmentVariables", Description = "Sets environment variables")]
607[AspireExport("getStatusAsync", Description = "Gets the status of the resource asynchronously")]
618[AspireExport("withCancellableOperation", Description = "Performs a cancellable operation")]
629[AspireExport("waitForReadyAsync", Description = "Waits for the resource to be ready")]
643[AspireExport("withMultiParamHandleCallback", Description = "Tests multi-param callback destructuring")]
657[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
671[AspireExport("withDataVolume", Description = "Adds a data volume")]
684[AspireExport("addTestVault", Description = "Adds a test vault resource")]
697[AspireExport("withVaultDirect", Description = "Configures vault using direct interface target")]
733[AspireExport(ExposeProperties = true)]
Aspire.Hosting.CodeGeneration.Python.Tests (35)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (32)
16[AspireExport("addTestRedis", Description = "Adds a test Redis resource")]
49[AspireExport("addTestChildDatabase", Description = "Adds a child database to a test Redis resource")]
65[AspireExport("withPersistence", Description = "Configures the Redis resource with persistence")]
87[AspireExport("withOptionalString", Description = "Adds an optional string parameter")]
392[AspireExport("withConfig", Description = "Configures the resource with a DTO")]
403[AspireExport("getTags", Description = "Gets the tags for the resource")]
412[AspireExport("getMetadata", Description = "Gets the metadata for the resource")]
421[AspireExport("withConnectionString", Description = "Sets the connection string using a reference expression")]
433[AspireExport("testWithEnvironmentCallback", Description = "Configures environment with callback (test version)")]
444[AspireExport("withCreatedAt", Description = "Sets the created timestamp")]
455[AspireExport("withModifiedAt", Description = "Sets the modified timestamp")]
466[AspireExport("withCorrelationId", Description = "Sets the correlation ID")]
477[AspireExport("withOptionalCallback", Description = "Configures with optional callback")]
489[AspireExport("withStatus", Description = "Sets the resource status")]
500[AspireExport("withNestedConfig", Description = "Configures with nested DTO")]
511[AspireExport("withValidator", Description = "Adds validation callback")]
523[AspireExport("testWaitFor", Description = "Waits for another resource (test version)")]
534[AspireExport("getEndpoints", Description = "Gets the endpoints")]
547[AspireExport("withConnectionStringDirect", Description = "Sets connection string using direct interface target")]
560[AspireExport("withRedisSpecific", Description = "Redis-specific configuration")]
572[AspireExport("withDependency", Description = "Adds a dependency on another resource")]
583[AspireExport("withEndpoints", Description = "Sets the endpoints")]
594[AspireExport("withEnvironmentVariables", Description = "Sets environment variables")]
607[AspireExport("getStatusAsync", Description = "Gets the status of the resource asynchronously")]
618[AspireExport("withCancellableOperation", Description = "Performs a cancellable operation")]
629[AspireExport("waitForReadyAsync", Description = "Waits for the resource to be ready")]
643[AspireExport("withMultiParamHandleCallback", Description = "Tests multi-param callback destructuring")]
657[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
671[AspireExport("withDataVolume", Description = "Adds a data volume")]
684[AspireExport("addTestVault", Description = "Adds a test vault resource")]
697[AspireExport("withVaultDirect", Description = "Configures vault using direct interface target")]
733[AspireExport(ExposeProperties = true)]
Aspire.Hosting.CodeGeneration.Rust.Tests (35)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (32)
16[AspireExport("addTestRedis", Description = "Adds a test Redis resource")]
49[AspireExport("addTestChildDatabase", Description = "Adds a child database to a test Redis resource")]
65[AspireExport("withPersistence", Description = "Configures the Redis resource with persistence")]
87[AspireExport("withOptionalString", Description = "Adds an optional string parameter")]
392[AspireExport("withConfig", Description = "Configures the resource with a DTO")]
403[AspireExport("getTags", Description = "Gets the tags for the resource")]
412[AspireExport("getMetadata", Description = "Gets the metadata for the resource")]
421[AspireExport("withConnectionString", Description = "Sets the connection string using a reference expression")]
433[AspireExport("testWithEnvironmentCallback", Description = "Configures environment with callback (test version)")]
444[AspireExport("withCreatedAt", Description = "Sets the created timestamp")]
455[AspireExport("withModifiedAt", Description = "Sets the modified timestamp")]
466[AspireExport("withCorrelationId", Description = "Sets the correlation ID")]
477[AspireExport("withOptionalCallback", Description = "Configures with optional callback")]
489[AspireExport("withStatus", Description = "Sets the resource status")]
500[AspireExport("withNestedConfig", Description = "Configures with nested DTO")]
511[AspireExport("withValidator", Description = "Adds validation callback")]
523[AspireExport("testWaitFor", Description = "Waits for another resource (test version)")]
534[AspireExport("getEndpoints", Description = "Gets the endpoints")]
547[AspireExport("withConnectionStringDirect", Description = "Sets connection string using direct interface target")]
560[AspireExport("withRedisSpecific", Description = "Redis-specific configuration")]
572[AspireExport("withDependency", Description = "Adds a dependency on another resource")]
583[AspireExport("withEndpoints", Description = "Sets the endpoints")]
594[AspireExport("withEnvironmentVariables", Description = "Sets environment variables")]
607[AspireExport("getStatusAsync", Description = "Gets the status of the resource asynchronously")]
618[AspireExport("withCancellableOperation", Description = "Performs a cancellable operation")]
629[AspireExport("waitForReadyAsync", Description = "Waits for the resource to be ready")]
643[AspireExport("withMultiParamHandleCallback", Description = "Tests multi-param callback destructuring")]
657[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
671[AspireExport("withDataVolume", Description = "Adds a data volume")]
684[AspireExport("addTestVault", Description = "Adds a test vault resource")]
697[AspireExport("withVaultDirect", Description = "Configures vault using direct interface target")]
733[AspireExport(ExposeProperties = true)]
Aspire.Hosting.CodeGeneration.TypeScript.Tests (35)
TestTypes\TestExtensions.cs (32)
16[AspireExport("addTestRedis", Description = "Adds a test Redis resource")]
49[AspireExport("addTestChildDatabase", Description = "Adds a child database to a test Redis resource")]
65[AspireExport("withPersistence", Description = "Configures the Redis resource with persistence")]
87[AspireExport("withOptionalString", Description = "Adds an optional string parameter")]
392[AspireExport("withConfig", Description = "Configures the resource with a DTO")]
403[AspireExport("getTags", Description = "Gets the tags for the resource")]
412[AspireExport("getMetadata", Description = "Gets the metadata for the resource")]
421[AspireExport("withConnectionString", Description = "Sets the connection string using a reference expression")]
433[AspireExport("testWithEnvironmentCallback", Description = "Configures environment with callback (test version)")]
444[AspireExport("withCreatedAt", Description = "Sets the created timestamp")]
455[AspireExport("withModifiedAt", Description = "Sets the modified timestamp")]
466[AspireExport("withCorrelationId", Description = "Sets the correlation ID")]
477[AspireExport("withOptionalCallback", Description = "Configures with optional callback")]
489[AspireExport("withStatus", Description = "Sets the resource status")]
500[AspireExport("withNestedConfig", Description = "Configures with nested DTO")]
511[AspireExport("withValidator", Description = "Adds validation callback")]
523[AspireExport("testWaitFor", Description = "Waits for another resource (test version)")]
534[AspireExport("getEndpoints", Description = "Gets the endpoints")]
547[AspireExport("withConnectionStringDirect", Description = "Sets connection string using direct interface target")]
560[AspireExport("withRedisSpecific", Description = "Redis-specific configuration")]
572[AspireExport("withDependency", Description = "Adds a dependency on another resource")]
583[AspireExport("withEndpoints", Description = "Sets the endpoints")]
594[AspireExport("withEnvironmentVariables", Description = "Sets environment variables")]
607[AspireExport("getStatusAsync", Description = "Gets the status of the resource asynchronously")]
618[AspireExport("withCancellableOperation", Description = "Performs a cancellable operation")]
629[AspireExport("waitForReadyAsync", Description = "Waits for the resource to be ready")]
643[AspireExport("withMultiParamHandleCallback", Description = "Tests multi-param callback destructuring")]
657[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
671[AspireExport("withDataVolume", Description = "Adds a data volume")]
684[AspireExport("addTestVault", Description = "Adds a test vault resource")]
697[AspireExport("withVaultDirect", Description = "Configures vault using direct interface target")]
733[AspireExport(ExposeProperties = true)]
Aspire.Hosting.DevTunnels (6)
DevTunnelResourceBuilderExtensions.cs (6)
237[AspireExport("addDevTunnel", Description = "Adds a Dev Tunnel resource to the distributed application model.")]
259[AspireExport("withReferenceResourceAnonymous", MethodName = "withTunnelReferenceAll", Description = "Configures the dev tunnel to expose all endpoints on the referenced resource.")]
308[AspireExport("withReferenceEndpoint", MethodName = "withTunnelReference", Description = "Configures the dev tunnel to expose a target endpoint.")]
321[AspireExport("withReferenceEndpointAnonymous", MethodName = "withTunnelReferenceAnonymous", Description = "Configures the dev tunnel to expose a target endpoint with access control.")]
360[AspireExport("withAnonymousAccess", Description = "Configures the dev tunnel to allow anonymous access.")]
424[AspireExport("getEndpointByEndpointReference", MethodName = "getTunnelEndpoint", Description = "Gets the public endpoint exposed by the dev tunnel.")]
Aspire.Hosting.Docker (11)
Aspire.Hosting.Foundry (19)
Aspire.Hosting.Garnet (5)
Aspire.Hosting.GitHub.Models (4)
Aspire.Hosting.JavaScript (14)
JavaScriptHostingExtensions.cs (11)
116[AspireExport("addNodeApp", Description = "Adds a Node.js application resource")]
330[AspireExport("addJavaScriptApp", Description = "Adds a JavaScript application resource")]
508[AspireExport("addViteApp", Description = "Adds a Vite application resource")]
670[AspireExport("withViteConfig", Description = "Configures a custom Vite configuration file")]
689[AspireExport("withNpm", Description = "Configures npm as the package manager")]
733[AspireExport("withBun", Description = "Configures Bun as the package manager")]
797[AspireExport("withYarn", Description = "Configures yarn as the package manager")]
872[AspireExport("withPnpm", Description = "Configures pnpm as the package manager")]
921[AspireExport("withBuildScript", Description = "Specifies an npm script to run before starting the application")]
940[AspireExport("withRunScript", Description = "Specifies an npm script to run during development")]
1031[AspireExport("withBrowserDebugger", Description = "Configures a browser debugger for the JavaScript application")]
Aspire.Hosting.Kafka (6)
Aspire.Hosting.Keycloak (9)
Aspire.Hosting.Kubernetes (5)
Aspire.Hosting.Maui (8)
Aspire.Hosting.Milvus (8)
Aspire.Hosting.MongoDB (9)
Aspire.Hosting.MySql (11)
MySqlBuilderExtensions.cs (9)
34[AspireExport("addMySql", Description = "Adds a MySQL server resource")]
112[AspireExport("addDatabase", Description = "Adds a MySQL database")]
186[AspireExport("withCreationScript", Description = "Defines the SQL script for database creation")]
203[AspireExport("withPassword", Description = "Configures the MySQL password")]
223[AspireExport("withPhpMyAdmin", Description = "Adds phpMyAdmin management UI", RunSyncOnBackgroundThread = true)]
312[AspireExport("withHostPort", Description = "Sets the host port for phpMyAdmin")]
330[AspireExport("withDataVolume", Description = "Adds a data volume for MySQL")]
345[AspireExport("withDataBindMount", Description = "Adds a data bind mount for MySQL")]
376[AspireExport("withInitFiles", Description = "Copies init files to MySQL")]
Aspire.Hosting.Nats (5)
Aspire.Hosting.OpenAI (5)
Aspire.Hosting.Oracle (8)
Aspire.Hosting.Orleans (18)
OrleansServiceExtensions.cs (15)
26[AspireExport("addOrleans", Description = "Adds an Orleans service configuration")]
38[AspireExport("withClusterId", Description = "Sets the Orleans cluster ID")]
69[AspireExport("withServiceId", Description = "Sets the Orleans service ID")]
100[AspireExport("withClustering", Description = "Configures Orleans clustering using a resource connection")]
127[AspireExport("withDevelopmentClustering", Description = "Configures Orleans development clustering")]
152[AspireExport("withGrainStorage", Description = "Adds an Orleans grain storage provider")]
183[AspireExport("withMemoryGrainStorage", Description = "Adds in-memory Orleans grain storage")]
209[AspireExport("withStreaming", Description = "Adds an Orleans stream provider")]
240[AspireExport("withMemoryStreaming", Description = "Adds in-memory Orleans streaming")]
270[AspireExport("withBroadcastChannel", Description = "Adds an Orleans broadcast channel provider")]
282[AspireExport("withReminders", Description = "Configures Orleans reminder storage")]
309[AspireExport("withMemoryReminders", Description = "Configures in-memory Orleans reminders")]
337[AspireExport("withGrainDirectory", Description = "Adds an Orleans grain directory provider")]
367[AspireExport("asClient", Description = "Creates an Orleans client view for the service")]
380[AspireExport("withOrleansReference", Description = "Adds an Orleans silo reference to a resource")]
Aspire.Hosting.PostgreSQL (16)
PostgresBuilderExtensions.cs (14)
45[AspireExport("addPostgres", Description = "Adds a PostgreSQL server resource")]
143[AspireExport("addDatabase", Description = "Adds a PostgreSQL database")]
186[AspireExport("withPgAdmin", Description = "Adds pgAdmin 4 management UI", RunSyncOnBackgroundThread = true)]
241[AspireExport("withPgAdminHostPort", MethodName = "withHostPort", Description = "Sets the host port for pgAdmin")]
258[AspireExport("withPgWebHostPort", MethodName = "withHostPort", Description = "Sets the host port for pgweb")]
296[AspireExport("withPgWeb", Description = "Adds pgweb management UI", RunSyncOnBackgroundThread = true)]
364[AspireExport("withPostgresMcp", Description = "Adds Postgres MCP server", RunSyncOnBackgroundThread = true)]
444[AspireExport("withDataVolume", Description = "Adds a data volume for PostgreSQL")]
474[AspireExport("withDataBindMount", Description = "Adds a data bind mount for PostgreSQL")]
509[AspireExport("withInitFiles", Description = "Copies init files to PostgreSQL")]
533[AspireExport("withCreationScript", Description = "Defines the SQL script for database creation")]
550[AspireExport("withPassword", Description = "Configures the PostgreSQL password")]
566[AspireExport("withUserName", Description = "Configures the PostgreSQL user name")]
582[AspireExport("withPostgresHostPort", MethodName = "withHostPort", Description = "Sets the host port for PostgreSQL")]
Aspire.Hosting.Python (9)
Aspire.Hosting.Qdrant (5)
Aspire.Hosting.RabbitMQ (6)
Aspire.Hosting.Redis (14)
RedisBuilderExtensions.cs (13)
38[AspireExport("addRedisWithPort", Description = "Adds a Redis container resource with specific port")]
61[AspireExport("addRedis", Description = "Adds a Redis container resource")]
212[AspireExport("withRedisCommander", Description = "Adds Redis Commander management UI", RunSyncOnBackgroundThread = true)]
290[AspireExport("withRedisInsight", Description = "Adds Redis Insight management UI", RunSyncOnBackgroundThread = true)]
391[AspireExport("withRedisCommanderHostPort", MethodName = "withHostPort", Description = "Sets the host port for Redis Commander")]
408[AspireExport("withRedisInsightHostPort", MethodName = "withHostPort", Description = "Sets the host port for Redis Insight")]
437[AspireExport("withDataVolume", Description = "Adds a data volume with persistence")]
468[AspireExport("withDataBindMount", Description = "Adds a data bind mount with persistence")]
498[AspireExport("withPersistence", Description = "Configures Redis persistence")]
520[AspireExport("withRedisInsightDataVolume", Description = "Adds a data volume for Redis Insight", MethodName = "withDataVolume")]
534[AspireExport("withRedisInsightDataBindMount", MethodName = "withDataBindMount", Description = "Adds a data bind mount for Redis Insight")]
549[AspireExport("withPassword", Description = "Configures the password for Redis")]
564[AspireExport("withHostPort", Description = "Sets the host port for Redis")]
Aspire.Hosting.RemoteHost.Tests (30)
CapabilityDispatcherTests.cs (30)
1432[AspireExport("testMethod", Description = "Test method")]
1438[AspireExport("withOptional", Description = "Method with optional parameter")]
1444[AspireExport("asyncVoid", Description = "Async method returning Task")]
1451[AspireExport("asyncWithResult", Description = "Async method returning Task<T>")]
1458[AspireExport("asyncValueTaskWithResult", Description = "Async method returning ValueTask<T>")]
1465[AspireExport("asyncThrows", Description = "Async method that throws")]
1476[AspireExport(ExposeProperties = true)]
1490[AspireExport(ExposeProperties = true)]
1500[AspireExport(ExposeProperties = true)]
1511[AspireExport(ExposeProperties = true)]
1530[AspireExport(ExposeMethods = true)]
1575[AspireExport("withCallback", Description = "Method with callback parameter")]
1586[AspireExport("invokeCallback", Description = "Method that invokes callback")]
1595[AspireExport("invokeTypedCallback", Description = "Method that invokes typed callback")]
1604[AspireExport("withAsyncCallback", Description = "Method with async callback returning value")]
1620[AspireExport("syncInlineThreadProbe", Description = "Captures the current thread for inline sync invocation")]
1626[AspireExport("syncBackgroundThreadProbe", Description = "Captures the current thread for background-thread sync invocation", RunSyncOnBackgroundThread = true)]
1632[AspireExport("valueTaskBackgroundThreadProbe", Description = "Captures the current thread for ValueTask<T> invocation", RunSyncOnBackgroundThread = true)]
1638[AspireExport("nonGenericValueTaskBackgroundThreadProbe", Description = "Captures the current thread for ValueTask invocation", RunSyncOnBackgroundThread = true)]
1651[AspireExport("sumArray", Description = "Sums an integer array")]
1657[AspireExport("returnArray", Description = "Returns a string array")]
1663[AspireExport("acceptReadOnlyList", Description = "Accepts a readonly list")]
1669[AspireExport("acceptUnion", Description = "Accepts a union of string or int")]
1675[AspireExport("returnMutableList", Description = "Returns a mutable List<string>")]
1681[AspireExport("returnMutableDict", Description = "Returns a mutable Dictionary<string, object>")]
1707[AspireExport("acceptEnum", Description = "Accepts an enum parameter")]
1713[AspireExport("returnEnum", Description = "Returns an enum value")]
1719[AspireExport("acceptOptionalEnum", Description = "Accepts an optional enum parameter")]
1755[AspireExport(ExposeProperties = true)]
1766[AspireExport(ExposeMethods = true)]
Aspire.Hosting.Seq (4)
Aspire.Hosting.SqlServer (9)
Aspire.Hosting.Tests (10)
Aspire.Hosting.Valkey (5)
Aspire.Hosting.Yarp (40)
YarpResourceExtensions.cs (7)
29[AspireExport("addYarp", Description = "Adds a YARP container to the application model.")]
106[AspireExport("withConfiguration", Description = "Configure the YARP resource.", RunSyncOnBackgroundThread = true)]
119[AspireExport("withHostPort", Description = "Configures the host port that the YARP resource is exposed on instead of using randomly assigned port.")]
137[AspireExport("withHostHttpsPort", Description = "Configures the host HTTPS port that the YARP resource is exposed on instead of using randomly assigned port.")]
152[AspireExport("withStaticFiles1", MethodName = "withStaticFiles", Description = "Enables static file serving in the YARP resource. Static files are served from the wwwroot folder.")]
168[AspireExport("withStaticFiles2", MethodName = "withStaticFiles", Description = "Enables static file serving. In run mode: bind mounts to /wwwroot.")]
203[AspireExport("publishWithStaticFiles", Description = "In publish mode, generates a Dockerfile that copies static files from the specified resource into /app/wwwroot.")]
17 references to AspireExport
Aspire.Hosting (4)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (10)
CapabilityDispatcherTests.cs (10)
361var dispatcher = CreateDispatcher(typeof(AspireExportAttribute).Assembly);
899var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
923var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
956var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
978var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1023var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1047var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1080var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1114var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1140var dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
Aspire.Hosting.Tests (2)