86 references to Create
Aspire.Hosting (2)
ApplicationModel\ResourceWithConnectionStringSurrogate.cs (1)
15ReferenceExpression.Create($"{innerResource}");
ProjectResourceBuilderExtensions.cs (1)
756var url = ReferenceExpression.Create($"{e.EndpointAnnotation.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
26ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsResource.cs (1)
26ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.CognitiveServices (1)
AzureOpenAIResource.cs (1)
27ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.CosmosDB (2)
AzureCosmosDBEmulatorConnectionString.cs (1)
11public static ReferenceExpression Create(EndpointReference endpoint) => ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint=https://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)};DisableServerCertificateValidation=True;");
AzureCosmosDBResource.cs (1)
37: ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsResource.cs (2)
49? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.Host)}:{EmulatorEndpoint.Property(EndpointProperty.Port)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;") 50: ReferenceExpression.Create($"{EventHubsEndpoint}");
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
111context.EnvironmentVariables["ASPNETCORE_URLS"] = ReferenceExpression.Create($"http://+:{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
24ReferenceExpression.Create($"{VaultUri}");
Aspire.Hosting.Azure.PostgreSQL (5)
AzurePostgresFlexibleServerResource.cs (4)
63ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 64ReferenceExpression.Create($"{ConnectionStringOutput}")); 93return ReferenceExpression.Create($"{new BicepSecretOutputReference(GetDatabaseKeyVaultSecretName(databaseResourceName), this)}"); 96return ReferenceExpression.Create($"{this};Database={databaseName}");
AzurePostgresResource.cs (1)
27ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Redis (3)
AzureRedisCacheResource.cs (2)
51ReferenceExpression.Create($"{ConnectionStringSecretOutput}") : 52ReferenceExpression.Create($"{ConnectionStringOutput}"));
AzureRedisResource.cs (1)
27ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.Search (1)
AzureSearchResource.cs (1)
29ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
29ReferenceExpression.Create($"{ServiceBusEndpoint}");
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRResource.cs (1)
26ReferenceExpression.Create($"Endpoint=https://{HostName};AuthType=azure");
Aspire.Hosting.Azure.Sql (2)
AzureSqlDatabaseResource.cs (1)
28ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
AzureSqlServerResource.cs (1)
59ReferenceExpression.Create($"Server=tcp:{FullyQualifiedDomainName},1433;Encrypt=True;Authentication=\"Active Directory Default\"");
Aspire.Hosting.Azure.Storage (3)
AzureStorageResource.cs (3)
55: ReferenceExpression.Create($"{TableEndpoint}"); 59: ReferenceExpression.Create($"{QueueEndpoint}"); 63: ReferenceExpression.Create($"{BlobEndpoint}");
Aspire.Hosting.Azure.Tests (6)
AzureBicepProvisionerTests.cs (2)
56.WithParameter("expr", ReferenceExpression.Create($"{param.Resource}/1")) 193ReferenceExpression.Create($"{connectionString}");
AzureContainerAppsTests.cs (3)
1117var secret0 = ReferenceExpression.Create($"{connectionString}"); 1118var secret1 = ReferenceExpression.Create($"{secret0}"); 1126var complex = ReferenceExpression.Create($"a/{connectionString}/{secret0}/{connectionString1}");
AzureProvisioningResourceExtensionsTests.cs (1)
23var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.Host)}:{endpointReference.Property(EndpointProperty.Port)}");
Aspire.Hosting.Azure.WebPubSub (2)
AzureWebPubSubExtensions.cs (1)
149var urlExpression = ReferenceExpression.Create(urlTemplateExpression);
AzureWebPubSubResource.cs (1)
27public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
281ReferenceExpression.Create($"{connectionString}");
Aspire.Hosting.Elasticsearch (1)
ElasticsearchResource.cs (1)
55ReferenceExpression.Create($"http://{UserName}:{PasswordParameter}@{PrimaryEndpoint.Property(EndpointProperty.Host)}:{PrimaryEndpoint.Property(EndpointProperty.Port)}");
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
28ReferenceExpression.Create(
Aspire.Hosting.Kafka (5)
KafkaBuilderExtensions.cs (4)
143? ReferenceExpression.Create($"{endpoint.Resource.Name}:{endpoint.Property(EndpointProperty.TargetPort)}") 144: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 221? ReferenceExpression.Create($"PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:{primaryEndpoint.Property(EndpointProperty.Port)},PLAINTEXT_INTERNAL://{resource.Name}:{internalEndpoint.Property(EndpointProperty.TargetPort)}") 222: ReferenceExpression.Create(
KafkaServerResource.cs (1)
38ReferenceExpression.Create(
Aspire.Hosting.Keycloak (2)
KeycloakResource.cs (2)
28ReferenceExpression.Create($"{AdminUserNameParameter}") : 29ReferenceExpression.Create($"{DefaultAdmin}");
Aspire.Hosting.Milvus (2)
MilvusDatabaseResource.cs (1)
25ReferenceExpression.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)
23ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
MySqlServerResource.cs (1)
40ReferenceExpression.Create(
Aspire.Hosting.Nats (2)
NatsServerResource.cs (2)
45ReferenceExpression.Create($"{UserNameParameter}") : 46ReferenceExpression.Create($"{DefaultUserName}");
Aspire.Hosting.Oracle (2)
OracleDatabaseResource.cs (1)
23ReferenceExpression.Create($"{Parent}/{DatabaseName}");
OracleDatabaseServerResource.cs (1)
40ReferenceExpression.Create(
Aspire.Hosting.PostgreSQL (4)
PostgresDatabaseResource.cs (1)
26ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
PostgresServerResource.cs (3)
44ReferenceExpression.Create($"{UserNameParameter}") : 45ReferenceExpression.Create($"{DefaultUserName}"); 53ReferenceExpression.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.Redis (1)
RedisResource.cs (1)
22ReferenceExpression.Create(
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
25ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.SqlServer (2)
SqlServerDatabaseResource.cs (1)
20ReferenceExpression.Create($"{Parent};Database={DatabaseName}");
SqlServerServerResource.cs (1)
37ReferenceExpression.Create(
Aspire.Hosting.Tests (17)
ExecutableResourceTests.cs (1)
77ReferenceExpression.Create($"{connectionString}");
ExpressionResolverTests.cs (7)
133{ "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)}/;") }, 134{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") }, 135{ "Url2", ReferenceExpression.Create($"Url={Endpoint1};") }, 136{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 137{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") }, 138{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 139{ "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)}/;") }
ReferenceExpressionTests.cs (3)
20var refExpression = ReferenceExpression.Create($"Hello {input}"); 38var expr = ReferenceExpression.Create($"{input}").ValueExpression; 69var expr = ReferenceExpression.Create($"{s}").ValueExpression;
ResourceNotificationTests.cs (1)
390ReferenceExpression.Create($"CustomConnectionString");
WaitForTests.cs (1)
368public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"foo");
WithEnvironmentTests.cs (3)
76var childExpression = ReferenceExpression.Create($"value"); 77var parameterExpression = ReferenceExpression.Create($"{childExpression}"); 269ReferenceExpression.Create($"{connectionString}");
WithReferenceTests.cs (1)
308ReferenceExpression.Create($"{ConnectionString}");
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
25ReferenceExpression.Create(