693 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.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 (53)
Aspire.Hosting.Azure.WebPubSub (4)
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.Java (2)
Aspire.Hosting.Java.Tests (2)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (46)
AddViteAppTests.cs (36)
578CertificatePath = ReferenceExpression.Create($"cert.pem"),
579KeyPath = ReferenceExpression.Create($"key.pem"),
580CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
581PfxPath = ReferenceExpression.Create($"cert.pfx"),
638CertificatePath = ReferenceExpression.Create($"cert.pem"),
639KeyPath = ReferenceExpression.Create($"key.pem"),
640CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
641PfxPath = ReferenceExpression.Create($"cert.pfx"),
690CertificatePath = ReferenceExpression.Create($"cert.pem"),
691KeyPath = ReferenceExpression.Create($"key.pem"),
692CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
693PfxPath = ReferenceExpression.Create($"cert.pfx"),
736CertificatePath = ReferenceExpression.Create($"cert.pem"),
737KeyPath = ReferenceExpression.Create($"key.pem"),
738CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
739PfxPath = ReferenceExpression.Create($"cert.pfx"),
788CertificatePath = ReferenceExpression.Create($"cert.pem"),
789KeyPath = ReferenceExpression.Create($"key.pem"),
790CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
791PfxPath = ReferenceExpression.Create($"cert.pfx"),
847CertificatePath = ReferenceExpression.Create($"cert.pem"),
848KeyPath = ReferenceExpression.Create($"key.pem"),
849CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
850PfxPath = ReferenceExpression.Create($"cert.pfx"),
920CertificatePath = ReferenceExpression.Create($"cert.pem"),
921KeyPath = ReferenceExpression.Create($"key.pem"),
922CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
923PfxPath = ReferenceExpression.Create($"cert.pfx"),
1025CertificatePath = ReferenceExpression.Create($"cert.pem"),
1026KeyPath = ReferenceExpression.Create($"key.pem"),
1027CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
1028PfxPath = ReferenceExpression.Create($"cert.pfx"),
1116CertificatePath = ReferenceExpression.Create($"cert.pem"),
1117KeyPath = ReferenceExpression.Create($"key.pem"),
1118CertificateWithKeyPath = ReferenceExpression.Create($"cert-with-key.pem"),
1119PfxPath = ReferenceExpression.Create($"cert.pfx"),
Aspire.Hosting.Kafka (7)
Aspire.Hosting.Keycloak (2)
Aspire.Hosting.Kubernetes (40)
Aspire.Hosting.Kubernetes.Tests (20)
KubernetesPublisherTests.cs (17)
31var cs = builder.AddConnectionString("cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
261var cs = builder.AddConnectionString("api-cs", ReferenceExpression.Create($"Url={param0}, Secret={param1}"));
262var csPlain = builder.AddConnectionString("api-cs2", ReferenceExpression.Create($"host.local:80"));
263var manualAlias = builder.AddConnectionString("manual-db", ReferenceExpression.Create($"unused"));
1153ReferenceExpression.Create($"enabled"),
1154ReferenceExpression.Create($"disabled"));
1158ReferenceExpression.Create($"enabled"),
1159ReferenceExpression.Create($"disabled"));
1275ReferenceExpression.Create($",ssl=true"),
1283ReferenceExpression.Create($",ssl=true"),
1284ReferenceExpression.Create($",ssl=false"));
1340ReferenceExpression.Create($"user={user};password={password}"),
1341ReferenceExpression.Create($"user={user};disabled"));
1390ReferenceExpression.Create($",ssl=true"),
1391ReferenceExpression.Create($",ssl=false"));
1455ReferenceExpression.Create($"{tlsSuffix.Resource}"),
1456ReferenceExpression.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)