Implemented interface member:
property
ValueExpression
Aspire.Hosting.ApplicationModel.IManifestExpressionProvider.ValueExpression
58 references to ValueExpression
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
381
Writer.WriteString("connectionString", connectionString.
ValueExpression
);
Aspire.Hosting.Azure.Tests (14)
AzureBicepResourceTests.cs (14)
235
Assert.Equal(prefix + "https://{cosmos.bindings.emulator.host}:{cosmos.bindings.emulator.port};DisableServerCertificateValidation=True;", csExpr.
ValueExpression
);
507
Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.
ValueExpression
);
564
Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.
ValueExpression
);
630
Assert.Equal("{appInsights.outputs.appInsightsConnectionString}", appInsights.Resource.ConnectionStringExpression.
ValueExpression
);
1113
Assert.Equal("Server=tcp:{sql.outputs.sqlServerFqdn},1433;Encrypt=True;Authentication=\"Active Directory Default\"", sql.Resource.ConnectionStringExpression.
ValueExpression
);
1207
Assert.Equal("Server=tcp:{sql.outputs.sqlServerFqdn},1433;Encrypt=True;Authentication=\"Active Directory Default\"", sql.Resource.ConnectionStringExpression.
ValueExpression
);
1620
Assert.Equal("{sb.outputs.serviceBusEndpoint}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
1856
var blobqs = AzureStorageEmulatorConnectionString.Create(blobEndpoint: GetEndpointReference("blob", 10000)).
ValueExpression
;
1857
var queueqs = AzureStorageEmulatorConnectionString.Create(queueEndpoint: GetEndpointReference("queue", 10001)).
ValueExpression
;
1858
var tableqs = AzureStorageEmulatorConnectionString.Create(tableEndpoint: GetEndpointReference("table", 10002)).
ValueExpression
;
1860
Assert.Equal(blobqs, blob.Resource.ConnectionStringExpression.
ValueExpression
);
1861
Assert.Equal(queueqs, queue.Resource.ConnectionStringExpression.
ValueExpression
);
1862
Assert.Equal(tableqs, table.Resource.ConnectionStringExpression.
ValueExpression
);
2529
Assert.Equal("{search.outputs.connectionString}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Elasticsearch.Tests (1)
AddElasticsearchTests.cs (1)
153
Assert.Equal("http://elastic:{elasticsearch-password.value}@{elasticsearch.bindings.http.host}:{elasticsearch.bindings.http.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
83
Assert.Equal("{myGarnet.bindings.tcp.host}:{myGarnet.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
71
Assert.Equal("{kafka.bindings.tcp.host}:{kafka.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.MongoDB.Tests (6)
AddMongoDBTests.cs (6)
92
Assert.Equal("mongodb://admin:{mongodb-password.value}@{mongodb.bindings.tcp.host}:{mongodb.bindings.tcp.port}?authSource=admin&authMechanism=SCRAM-SHA-256", serverResource.ConnectionStringExpression.
ValueExpression
);
94
Assert.Equal("mongodb://admin:{mongodb-password.value}@{mongodb.bindings.tcp.host}:{mongodb.bindings.tcp.port}/mydatabase?authSource=admin&authMechanism=SCRAM-SHA-256", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
265
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/customers1?authSource=admin&authMechanism=SCRAM-SHA-256", db1.Resource.ConnectionStringExpression.
ValueExpression
);
266
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/customers2?authSource=admin&authMechanism=SCRAM-SHA-256", db2.Resource.ConnectionStringExpression.
ValueExpression
);
283
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/imports?authSource=admin&authMechanism=SCRAM-SHA-256", db1.Resource.ConnectionStringExpression.
ValueExpression
);
284
Assert.Equal("mongodb://admin:{mongo2-password.value}@{mongo2.bindings.tcp.host}:{mongo2.bindings.tcp.port}/imports?authSource=admin&authMechanism=SCRAM-SHA-256", db2.Resource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.MySql.Tests (6)
AddMySqlTests.cs (6)
127
Assert.Equal("Server={mysql.bindings.tcp.host};Port={mysql.bindings.tcp.port};User ID=root;Password={mysql-password.value}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
151
Assert.Equal("{mysql.connectionString};Database=db", mySqlDatabaseResource.ConnectionStringExpression.
ValueExpression
);
337
Assert.Equal("{mysql1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.
ValueExpression
);
338
Assert.Equal("{mysql1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.
ValueExpression
);
355
Assert.Equal("{mysql1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.
ValueExpression
);
356
Assert.Equal("{mysql2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
55
Assert.Equal("nats://nats:{nats-password.value}@{nats.bindings.tcp.host}:{nats.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
82
Assert.Equal("nats://{user.value}:{pass.value}@{nats.bindings.tcp.host}:{nats.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Oracle.Tests (6)
AddOracleTests.cs (6)
126
Assert.Equal("user id=system;password={orcl-password.value};data source={orcl.bindings.tcp.host}:{orcl.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
150
Assert.Equal("{orcl.connectionString}/db", oracleDatabaseConnectionStringResource.ConnectionStringExpression.
ValueExpression
);
300
Assert.Equal("{oracle1.connectionString}/customers1", db1.Resource.ConnectionStringExpression.
ValueExpression
);
301
Assert.Equal("{oracle1.connectionString}/customers2", db2.Resource.ConnectionStringExpression.
ValueExpression
);
318
Assert.Equal("{oracle1.connectionString}/imports", db1.Resource.ConnectionStringExpression.
ValueExpression
);
319
Assert.Equal("{oracle2.connectionString}/imports", db2.Resource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.PostgreSQL.Tests (6)
AddPostgresTests.cs (6)
162
Assert.Equal("Host={postgres.bindings.tcp.host};Port={postgres.bindings.tcp.port};Username=postgres;Password={postgres-password.value}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
184
Assert.Equal("{postgres.connectionString};Database=db", postgresDatabaseResource.ConnectionStringExpression.
ValueExpression
);
585
Assert.Equal("{postgres1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.
ValueExpression
);
586
Assert.Equal("{postgres1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.
ValueExpression
);
603
Assert.Equal("{postgres1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.
ValueExpression
);
604
Assert.Equal("{postgres2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.RabbitMQ.Tests (1)
AddRabbitMQTests.cs (1)
111
Assert.Equal("amqp://guest:{pass.value}@{rabbit.bindings.tcp.host}:{rabbit.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
92
Assert.Equal("{myRedis.bindings.tcp.host}:{myRedis.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.SqlServer.Tests (6)
AddSqlServerTests.cs (6)
98
Assert.Equal("Server={sqlserver.bindings.tcp.host},{sqlserver.bindings.tcp.port};User ID=sa;Password={pass.value};TrustServerCertificate=true", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
122
Assert.Equal("{sqlserver.connectionString};Database=mydb", connectionStringResource.ConnectionStringExpression.
ValueExpression
);
233
Assert.Equal("{sqlserver1.connectionString};Database=customers1", db1.Resource.ConnectionStringExpression.
ValueExpression
);
234
Assert.Equal("{sqlserver1.connectionString};Database=customers2", db2.Resource.ConnectionStringExpression.
ValueExpression
);
251
Assert.Equal("{sqlserver1.connectionString};Database=imports", db1.Resource.ConnectionStringExpression.
ValueExpression
);
252
Assert.Equal("{sqlserver2.connectionString};Database=imports", db2.Resource.ConnectionStringExpression.
ValueExpression
);
Aspire.Hosting.Tests (5)
ReferenceExpressionTests.cs (5)
24
var expr = refExpression.
ValueExpression
;
38
var expr = ReferenceExpression.Create($"{input}").
ValueExpression
;
49
var expr = ReferenceExpression.Create($"{input}", [new HostUrl("test")], parameters).
ValueExpression
;
61
var expr = ReferenceExpression.Create($"{input}", [new HostUrl("test")], [parameterValue]).
ValueExpression
;
69
var expr = ReferenceExpression.Create($"{s}").
ValueExpression
;
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
83
Assert.Equal("{myValkey.bindings.tcp.host}:{myValkey.bindings.tcp.port}", connectionStringResource.ConnectionStringExpression.
ValueExpression
);