711 references to Create
Aspire.Hosting (35)
Dcp\ExecutableConfigurationResolver.cs (6)
72CertificateBundlePath = ReferenceExpression.Create($"{bundleOutputPath}"),
73CertificateDirectoriesPath = ReferenceExpression.Create($"{string.Join(Path.PathSeparator, directories)}"),
79CertificatePath = ReferenceExpression.Create($"{Path.Join(baseServerAuthOutputPath, $"{certificate.Thumbprint}.crt")}"),
80KeyPath = ReferenceExpression.Create($"{Path.Join(baseServerAuthOutputPath, $"{certificate.Thumbprint}.key")}"),
81CertificateWithKeyPath = ReferenceExpression.Create($"{Path.Join(baseServerAuthOutputPath, $"{certificate.Thumbprint}.pem")}"),
82PfxPath = ReferenceExpression.Create($"{Path.Join(baseServerAuthOutputPath, $"{certificate.Thumbprint}.pfx")}"),
Aspire.Hosting.Azure.AppConfiguration (2)
Aspire.Hosting.Azure.AppContainers (10)
Aspire.Hosting.Azure.ApplicationInsights (1)
Aspire.Hosting.Azure.AppService (10)
Aspire.Hosting.Azure.CognitiveServices (4)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.CosmosDB (11)
Aspire.Hosting.Azure.EntraId (5)
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.EventHubs (8)
Aspire.Hosting.Azure.Functions (10)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.Kubernetes (6)
Aspire.Hosting.Azure.Kubernetes.Tests (5)
Aspire.Hosting.Azure.Kusto (6)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.PostgreSQL (22)
Aspire.Hosting.Azure.Provisioning.Tests (2)
Aspire.Hosting.Azure.Redis (16)
Aspire.Hosting.Azure.Sandboxes (1)
Aspire.Hosting.Azure.Search (2)
Aspire.Hosting.Azure.ServiceBus (10)
Aspire.Hosting.Azure.SignalR (4)
Aspire.Hosting.Azure.Sql (12)
Aspire.Hosting.Azure.Storage (14)
Aspire.Hosting.Azure.Tests (56)
Aspire.Hosting.Azure.WebPubSub (8)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Docker (3)
Aspire.Hosting.Docker.Tests (7)
DockerComposePublisherTests.cs (7)
34var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
116var connection = builder.AddConnectionString("my-db", ReferenceExpression.Create($"Host=example"));
1244ReferenceExpression.Create($",ssl=true"),
1252ReferenceExpression.Create($",ssl=true"),
1253ReferenceExpression.Create($",ssl=false"));
1286ReferenceExpression.Create($",ssl=true"),
1287ReferenceExpression.Create($",ssl=false"));
Aspire.Hosting.EntityFrameworkCore.Tests (3)
Aspire.Hosting.Foundry (29)
Aspire.Hosting.Foundry.Tests (13)
Aspire.Hosting.Garnet (3)
Aspire.Hosting.Go.Tests (2)
Aspire.Hosting.Java (2)
Aspire.Hosting.Java.Tests (2)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (46)
AddViteAppTests.cs (36)
576CertificatePath = ReferenceExpression.Create($"cert.pem"),
577KeyPath = ReferenceExpression.Create($"key.pem"),
578CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
579PfxPath = ReferenceExpression.Create($"cert.pfx"),
636CertificatePath = ReferenceExpression.Create($"cert.pem"),
637KeyPath = ReferenceExpression.Create($"key.pem"),
638CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
639PfxPath = ReferenceExpression.Create($"cert.pfx"),
688CertificatePath = ReferenceExpression.Create($"cert.pem"),
689KeyPath = ReferenceExpression.Create($"key.pem"),
690CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
691PfxPath = ReferenceExpression.Create($"cert.pfx"),
734CertificatePath = ReferenceExpression.Create($"cert.pem"),
735KeyPath = ReferenceExpression.Create($"key.pem"),
736CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
737PfxPath = ReferenceExpression.Create($"cert.pfx"),
786CertificatePath = ReferenceExpression.Create($"cert.pem"),
787KeyPath = ReferenceExpression.Create($"key.pem"),
788CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
789PfxPath = ReferenceExpression.Create($"cert.pfx"),
845CertificatePath = ReferenceExpression.Create($"cert.pem"),
846KeyPath = ReferenceExpression.Create($"key.pem"),
847CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
848PfxPath = ReferenceExpression.Create($"cert.pfx"),
918CertificatePath = ReferenceExpression.Create($"cert.pem"),
919KeyPath = ReferenceExpression.Create($"key.pem"),
920CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
921PfxPath = ReferenceExpression.Create($"cert.pfx"),
1023CertificatePath = ReferenceExpression.Create($"cert.pem"),
1024KeyPath = ReferenceExpression.Create($"key.pem"),
1025CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
1026PfxPath = ReferenceExpression.Create($"cert.pfx"),
1114CertificatePath = ReferenceExpression.Create($"cert.pem"),
1115KeyPath = ReferenceExpression.Create($"key.pem"),
1116CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
1117PfxPath = ReferenceExpression.Create($"cert.pfx"),
Aspire.Hosting.Kafka (7)
Aspire.Hosting.Keycloak (2)
Aspire.Hosting.Kubernetes (41)
Aspire.Hosting.Kubernetes.Tests (22)
KubernetesPublisherTests.cs (19)
78var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
309var cs = builder.AddConnectionString("api-cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
310var csPlain = builder.AddConnectionString("api-cs2", ReferenceExpression.Create($"host.local:80"));
311var manualAlias = builder.AddConnectionString("manual-db", ReferenceExpression.Create($"unused"));
935var output = ReferenceExpression.Create($"{new TestValueProvider("provisioned-value")}");
937repositoryOutput ? ReferenceExpression.Create($"registry.example.com") : output,
1376ReferenceExpression.Create($"enabled"),
1377ReferenceExpression.Create($"disabled"));
1381ReferenceExpression.Create($"enabled"),
1382ReferenceExpression.Create($"disabled"));
1498ReferenceExpression.Create($",ssl=true"),
1506ReferenceExpression.Create($",ssl=true"),
1507ReferenceExpression.Create($",ssl=false"));
1563ReferenceExpression.Create($"user={user};password={password}"),
1564ReferenceExpression.Create($"user={user};disabled"));
1613ReferenceExpression.Create($",ssl=true"),
1614ReferenceExpression.Create($",ssl=false"));
1678ReferenceExpression.Create($"{tlsSuffix.Resource}"),
1679ReferenceExpression.Create($",ssl=false"));
Aspire.Hosting.Milvus (8)
Aspire.Hosting.MongoDB (17)
Aspire.Hosting.MongoDB.Tests (5)
Aspire.Hosting.MySql (7)
Aspire.Hosting.Nats (5)
Aspire.Hosting.OpenAI (5)
Aspire.Hosting.Oracle (7)
Aspire.Hosting.Orleans.Tests (1)
Aspire.Hosting.PostgreSQL (9)
Aspire.Hosting.Qdrant (9)
Aspire.Hosting.RabbitMQ (5)
Aspire.Hosting.Radius (9)
Aspire.Hosting.Radius.Tests (33)
Publishing\BackingResourceValueResolutionTests.cs (32)
458ReferenceExpression.Create($"primary"),
459ReferenceExpression.Create($"secondary")))
487ReferenceExpression.Create($"primary"),
488ReferenceExpression.Create($"secondary")))));
506ReferenceExpression.Create($"primary"),
507ReferenceExpression.Create($"secondary")))
532ReferenceExpression.Create($"primary"),
533ReferenceExpression.Create($"secondary")));
552ReferenceExpression.Create($"{mode.Resource}"),
554ReferenceExpression.Create($"primary"),
555ReferenceExpression.Create($"secondary")));
572ReferenceExpression.Create($"{new ThrowingDeploymentOutput(new InvalidOperationException("not deployed yet"))}"),
574ReferenceExpression.Create($"primary"),
575ReferenceExpression.Create($"secondary")))
600ReferenceExpression.Create($"primary"),
601ReferenceExpression.Create($"secondary")));
627ReferenceExpression.Create($"primary"),
628ReferenceExpression.Create($"secondary")));
649ReferenceExpression.Create($"primary"),
650ReferenceExpression.Create($"secondary")),
652ReferenceExpression.Create($"primary"),
653ReferenceExpression.Create($"secondary")))
1013.WithEnvironment("ADMIN_PASSWORD", ReferenceExpression.Create($"{shared}"));
1090.WithEnvironment("DB_PRIMARY_PASSWORD", ReferenceExpression.Create($"{shared}"));
1194.WithEnvironment("PORT_URL", ReferenceExpression.Create($"tcp://cache:{port:uri}/"));
1217ReferenceExpression.Create($"primary-{cache.GetEndpoint("tcp").Property(EndpointProperty.Host)}"),
1218ReferenceExpression.Create($"secondary-fallback"));
1355.WithEnvironment("TOKEN", ReferenceExpression.Create($"{token:json}"));
1405new("username", ReferenceExpression.Create($"app")),
1406new("password", ReferenceExpression.Create($"{unresolvable}")),
1454ConnectionStringExpression = ReferenceExpression.Create($"{inner};{new ConnectionStringReference(this, false)}");
1507public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create($"Host=pg");
Aspire.Hosting.Redis (4)
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Hosting.Seq (4)
Aspire.Hosting.SqlServer (10)
Aspire.Hosting.Tests (101)
ConnectionPropertiesExtensionsTests.cs (5)
16new KeyValuePair<string, ReferenceExpression>("Host", ReferenceExpression.Create($"resourceHost")),
17new KeyValuePair<string, ReferenceExpression>("Port", ReferenceExpression.Create($"8080")),
22new KeyValuePair<string, ReferenceExpression>("Port", ReferenceExpression.Create($"9090")),
23new KeyValuePair<string, ReferenceExpression>("Username", ReferenceExpression.Create($"user")),
44public ReferenceExpression ConnectionStringExpression { get; } = ReferenceExpression.Create($"{name}.connectionString");
ExpressionResolverTests.cs (11)
327ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
351{ "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)}/;") },
352{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") },
353{ "Url2", ReferenceExpression.Create($"Url={Endpoint1};") },
354{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") },
355{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") },
356{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
357{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") },
358{ "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)}/;") },
360{ "String", ReferenceExpression.Create($"String") },
363{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
Aspire.Hosting.Valkey (3)
Aspire.Hosting.Yarp.Tests (1)
ParameterEndToEnd.AppHost (1)
TestingAppHost1.AppHost (1)