104 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)
30ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (3)
84ReferenceExpression IContainerRegistry.Name => ReferenceExpression.Create($"{ContainerRegistryName}"); 86ReferenceExpression IContainerRegistry.Endpoint => ReferenceExpression.Create($"{ContainerRegistryUrl}"); 88ReferenceExpression IAzureContainerRegistry.ManagedIdentityId => ReferenceExpression.Create($"{ContainerRegistryManagedIdentityId}");
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsResource.cs (1)
26ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.CognitiveServices (2)
AzureOpenAIResource.cs (2)
33ReferenceExpression.Create($"{ConnectionString}"); 36ReferenceExpression.Create($"{ConnectionString};Deployment={deploymentName}");
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)
70ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 71ReferenceExpression.Create($"{ConnectionStringOutput}");
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
103context.EnvironmentVariables["ASPNETCORE_URLS"] = ReferenceExpression.Create($"http://+:{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
32ReferenceExpression.Create($"{VaultUri}");
Aspire.Hosting.Azure.PostgreSQL (5)
AzurePostgresFlexibleServerResource.cs (4)
72ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 73ReferenceExpression.Create($"{ConnectionStringOutput}")); 102return ReferenceExpression.Create($"{ConnectionStringSecretOutput.Resource.GetSecret(GetDatabaseKeyVaultSecretName(databaseResourceName))}"); 105return ReferenceExpression.Create($"{this};Database={databaseName}");
AzurePostgresResource.cs (1)
28ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Redis (3)
AzureRedisCacheResource.cs (2)
58ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 59ReferenceExpression.Create($"{ConnectionStringOutput}"));
AzureRedisResource.cs (1)
28ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Search (1)
AzureSearchResource.cs (1)
32ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusResource.cs (2)
40? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;") 41: ReferenceExpression.Create($"{ServiceBusEndpoint}");
Aspire.Hosting.Azure.SignalR (2)
AzureSignalRResource.cs (2)
37? ReferenceExpression.Create($"Endpoint={EmulatorEndpoint.Property(EndpointProperty.Url)};AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH;Version=1.0;") 38: ReferenceExpression.Create($"Endpoint=https://{HostName};AuthType=azure");
Aspire.Hosting.Azure.Sql (2)
AzureSqlDatabaseResource.cs (1)
28ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
AzureSqlServerResource.cs (1)
63ReferenceExpression.Create($"Server=tcp:{FullyQualifiedDomainName},1433;Encrypt=True;Authentication=\"Active Directory Default\"");
Aspire.Hosting.Azure.Storage (3)
AzureStorageResource.cs (3)
58: ReferenceExpression.Create($"{TableEndpoint}"); 62: ReferenceExpression.Create($"{QueueEndpoint}"); 66: ReferenceExpression.Create($"{BlobEndpoint}");
Aspire.Hosting.Azure.Tests (9)
AzureBicepProvisionerTests.cs (2)
58.WithParameter("expr", ReferenceExpression.Create($"{param.Resource}/1")) 301ReferenceExpression.Create($"{connectionString}");
AzureContainerAppsTests.cs (3)
1738var secret0 = ReferenceExpression.Create($"{connectionString}"); 1739var secret1 = ReferenceExpression.Create($"{secret0}"); 1747var complex = ReferenceExpression.Create($"a/{connectionString}/{secret0}/{connectionString1}");
AzureProvisioningResourceExtensionsTests.cs (1)
22var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
AzurePublisherTests.cs (1)
39var skuDescriptionExpr = ReferenceExpression.Create($"{description} {storageSku}");
PublicApiTests\WebPubSubPublicApiTests.cs (2)
76var urlExpression = ReferenceExpression.Create($"host"); 99var 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)
30public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
325ReferenceExpression.Create($"{connectionString}");
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
32var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
Aspire.Hosting.Elasticsearch (1)
ElasticsearchResource.cs (1)
49ReferenceExpression.Create($"http://{UserName}:{PasswordParameter}@{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
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)
55var 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)
27ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
MySqlServerResource.cs (1)
40ReferenceExpression.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 (24)
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") },
ReferenceExpressionTests.cs (3)
20var refExpression = ReferenceExpression.Create($"Hello {input}"); 38var expr = ReferenceExpression.Create($"{input}").ValueExpression; 69var expr = ReferenceExpression.Create($"{s}").ValueExpression;
ResourceNotificationTests.cs (1)
408ReferenceExpression.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")}"));