112 references to Create
Aspire.Hosting (2)
ConnectionStringParameterResource.cs (1)
24ReferenceExpression.Create($"{this}");
ProjectResourceBuilderExtensions.cs (1)
842var url = ReferenceExpression.Create($"{e.EndpointAnnotation.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
33ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (3)
61ReferenceExpression IContainerRegistry.Name => ReferenceExpression.Create($"{ContainerRegistryName}"); 63ReferenceExpression IContainerRegistry.Endpoint => ReferenceExpression.Create($"{ContainerRegistryUrl}"); 65ReferenceExpression IAzureContainerRegistry.ManagedIdentityId => ReferenceExpression.Create($"{ContainerRegistryManagedIdentityId}");
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsResource.cs (1)
31ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceEnvironmentResource.cs (3)
29ReferenceExpression.Create($"{ContainerRegistryManagedIdentityId}"); 32ReferenceExpression.Create($"{ContainerRegistryName}"); 35ReferenceExpression.Create($"{ContainerRegistryUrl}");
Aspire.Hosting.Azure.CognitiveServices (2)
AzureOpenAIResource.cs (2)
36ReferenceExpression.Create($"{ConnectionString}"); 39ReferenceExpression.Create($"{ConnectionString};Deployment={deploymentName}");
Aspire.Hosting.Azure.ContainerRegistry (2)
AzureContainerRegistryResource.cs (2)
29ReferenceExpression IContainerRegistry.Name => ReferenceExpression.Create($"{NameOutputReference}"); 32ReferenceExpression IContainerRegistry.Endpoint => ReferenceExpression.Create($"{RegistryEndpoint}");
Aspire.Hosting.Azure.CosmosDB (4)
AzureCosmosDBEmulatorConnectionString.cs (2)
13? ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint={endpoint.Property(EndpointProperty.Url)}") 14: ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint=https://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)};DisableServerCertificateValidation=True;");
AzureCosmosDBResource.cs (2)
74ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 75ReferenceExpression.Create($"{ConnectionStringOutput}");
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
109context.EnvironmentVariables["ASPNETCORE_URLS"] = ReferenceExpression.Create($"http://+:{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
36ReferenceExpression.Create($"{VaultUri}");
Aspire.Hosting.Azure.PostgreSQL (5)
AzurePostgresFlexibleServerResource.cs (4)
75ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 76ReferenceExpression.Create($"{ConnectionStringOutput}")); 105return ReferenceExpression.Create($"{ConnectionStringSecretOutput.Resource.GetSecret(GetDatabaseKeyVaultSecretName(databaseResourceName))}"); 108return ReferenceExpression.Create($"{this};Database={databaseName}");
AzurePostgresResource.cs (1)
28ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Redis (3)
AzureRedisCacheResource.cs (2)
61ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 62ReferenceExpression.Create($"{ConnectionStringOutput}"));
AzureRedisResource.cs (1)
28ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Search (1)
AzureSearchResource.cs (1)
35ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusResource.cs (2)
43? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;") 44: ReferenceExpression.Create($"{ServiceBusEndpoint}");
Aspire.Hosting.Azure.SignalR (2)
AzureSignalRResource.cs (2)
40? ReferenceExpression.Create($"Endpoint={EmulatorEndpoint.Property(EndpointProperty.Url)};AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH;Version=1.0;") 41: ReferenceExpression.Create($"Endpoint=https://{HostName};AuthType=azure");
Aspire.Hosting.Azure.Sql (2)
AzureSqlDatabaseResource.cs (1)
33ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
AzureSqlServerResource.cs (1)
73ReferenceExpression.Create($"Server=tcp:{FullyQualifiedDomainName},1433;Encrypt=True;Authentication=\"Active Directory Default\"");
Aspire.Hosting.Azure.Storage (3)
AzureStorageResource.cs (3)
63: ReferenceExpression.Create($"{TableEndpoint}"); 67: ReferenceExpression.Create($"{QueueEndpoint}"); 71: ReferenceExpression.Create($"{BlobEndpoint}");
Aspire.Hosting.Azure.Tests (9)
AzureBicepProvisionerTests.cs (2)
57.WithParameter("expr", ReferenceExpression.Create($"{param.Resource}/1")) 298ReferenceExpression.Create($"{connectionString}");
AzureEnvironmentResourceTests.cs (2)
94var skuDescriptionExpr = ReferenceExpression.Create($"{description} {storageSku}"); 141var skuDescriptionExpr = ReferenceExpression.Create($"{description} {storageSku}");
AzureKeyVaultTests.cs (2)
170var connectionString = ReferenceExpression.Create($"Server=localhost;Database=mydb;pwd={pwd}"); 187var connectionString = ReferenceExpression.Create($"Server=localhost;Database=mydb;User=user");
AzureProvisioningResourceExtensionsTests.cs (1)
21var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
PublicApiTests\WebPubSubPublicApiTests.cs (2)
75var urlExpression = ReferenceExpression.Create($"host"); 98var urlExpression = ReferenceExpression.Create($"host");
Aspire.Hosting.Azure.WebPubSub (3)
AzureWebPubSubExtensions.cs (1)
191var urlExpression = ReferenceExpression.Create(urlTemplateExpression);
AzureWebPubSubHubResource.cs (1)
41public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"Endpoint={Parent.Endpoint};Hub={HubName}");
AzureWebPubSubResource.cs (1)
33public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
345ReferenceExpression.Create($"{connectionString}");
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
31var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
Aspire.Hosting.Kafka (5)
KafkaBuilderExtensions.cs (4)
142? ReferenceExpression.Create($"{endpoint.Resource.Name}:{endpoint.Property(EndpointProperty.TargetPort)}") 143: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.HostAndPort)}"); 220? ReferenceExpression.Create($"PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:{primaryEndpoint.Property(EndpointProperty.Port)},PLAINTEXT_INTERNAL://{resource.Name}:{internalEndpoint.Property(EndpointProperty.TargetPort)}") 221: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
38ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Keycloak (2)
KeycloakResource.cs (2)
25ReferenceExpression.Create($"{AdminUserNameParameter}") : 26ReferenceExpression.Create($"{DefaultAdmin}");
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
23var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
Aspire.Hosting.Milvus (2)
MilvusDatabaseResource.cs (1)
27ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
MilvusServerResource.cs (1)
42ReferenceExpression.Create(
Aspire.Hosting.MongoDB (2)
MongoDBServerResource.cs (2)
48ReferenceExpression.Create($"{UserNameParameter}") : 49ReferenceExpression.Create($"{DefaultUserName}");
Aspire.Hosting.MySql (2)
MySqlDatabaseResource.cs (1)
36return ReferenceExpression.Create($"{Parent};{connectionStringBuilder.ToString()}");
MySqlServerResource.cs (1)
43ReferenceExpression.Create(
Aspire.Hosting.Nats (2)
NatsServerResource.cs (2)
42ReferenceExpression.Create($"{UserNameParameter}") : 43ReferenceExpression.Create($"{DefaultUserName}");
Aspire.Hosting.Oracle (2)
OracleDatabaseResource.cs (1)
27ReferenceExpression.Create($"{Parent}/{DatabaseName}");
OracleDatabaseServerResource.cs (1)
40ReferenceExpression.Create(
Aspire.Hosting.PostgreSQL (4)
PostgresDatabaseResource.cs (1)
36return ReferenceExpression.Create($"{Parent};{connectionStringBuilder.ToString()}");
PostgresServerResource.cs (3)
41ReferenceExpression.Create($"{UserNameParameter}") : 42ReferenceExpression.Create($"{DefaultUserName}"); 50ReferenceExpression.Create(
Aspire.Hosting.Qdrant (2)
QdrantServerResource.cs (2)
47ReferenceExpression.Create( 54ReferenceExpression.Create(
Aspire.Hosting.RabbitMQ (3)
RabbitMQServerResource.cs (3)
42ReferenceExpression.Create($"{UserNameParameter}") : 43ReferenceExpression.Create($"{DefaultUserName}"); 54ReferenceExpression.Create(
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
25ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.SqlServer (2)
SqlServerDatabaseResource.cs (1)
36return ReferenceExpression.Create($"{Parent};{connectionStringBuilder.ToString()}");
SqlServerServerResource.cs (1)
37ReferenceExpression.Create(
Aspire.Hosting.Tests (28)
AddParameterTests.cs (1)
332appBuilder.AddConnectionString("mycs", ReferenceExpression.Create($"Endpoint={endpoint};Key={key}"));
ExecutableResourceTests.cs (1)
107ReferenceExpression.Create($"{connectionString}");
ExpressionResolverTests.cs (11)
200ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}"); 223{ "TwoFullEndpoints", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://{Endpoint2.Property(EndpointProperty.Host)}:{Endpoint2.Property(EndpointProperty.Port)}/;") }, 224{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") }, 225{ "Url2", ReferenceExpression.Create($"Url={Endpoint1};") }, 226{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 227{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") }, 228{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") }, 229{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 230{ "FullAndPartial", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://localhost:{Endpoint2.Property(EndpointProperty.Port)}/;") }, 231{ "Empty", ReferenceExpression.Create($"") }, 232{ "String", ReferenceExpression.Create($"String") },
Orchestrator\ApplicationOrchestratorTests.cs (2)
452ReferenceExpression.Create($"Server=localhost:8000"); 466ReferenceExpression.Create($"{parent};{SubConnectionString}");
ReferenceExpressionTests.cs (5)
19var refExpression = ReferenceExpression.Create($"Hello {input}"); 37var expr = ReferenceExpression.Create($"{input}").ValueExpression; 70var expr = ReferenceExpression.Create($"{s}").ValueExpression; 79var expr = ReferenceExpression.Create($"[{{\"api_uri\":\"{v}\"}}]"); 90var expr = ReferenceExpression.Create($"[{{{{\"api_uri\":\"{v}\"}}}}]");
ResourceNotificationTests.cs (1)
441ReferenceExpression.Create($"CustomConnectionString");
WaitForTests.cs (2)
127var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"{dependency};Timeout=100")); 807public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"foo");
WithEnvironmentTests.cs (3)
86var childExpression = ReferenceExpression.Create($"value"); 87var parameterExpression = ReferenceExpression.Create($"{childExpression}"); 360ReferenceExpression.Create($"{connectionString}");
WithReferenceTests.cs (2)
281var cs = ReferenceExpression.Create($"Endpoint={endpoint};Key={key}"); 402ReferenceExpression.Create($"{ConnectionString}");
ParameterEndToEnd.AppHost (1)
Program.cs (1)
24var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"sql={db};rows={insertionrows}"));
TestingAppHost1.AppHost (1)
Program.cs (1)
14builder.AddConnectionString("cs2", ReferenceExpression.Create($"Value={builder.AddParameter("p", "this is a value")}"));