18 references to PrimaryEndpoint
Aspire.Hosting.Azure.Redis (2)
AzureManagedRedisResource.cs (1)
102
ReferenceExpression.Create($"{InnerResource.
PrimaryEndpoint
.Property(EndpointProperty.Host)}") :
AzureRedisCacheResource.cs (1)
79
ReferenceExpression.Create($"{InnerResource.
PrimaryEndpoint
.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Redis (10)
RedisBuilderExtensions.cs (3)
249
var endpoint = redisInstance.
PrimaryEndpoint
;
325
context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.
PrimaryEndpoint
.Property(EndpointProperty.Host);
326
context.EnvironmentVariables[$"RI_REDIS_PORT{counter}"] = redisInstance.
PrimaryEndpoint
.TargetPort!.Value;
RedisResource.cs (7)
54
public EndpointReferenceExpression Host =>
PrimaryEndpoint
.Property(EndpointProperty.Host);
59
public EndpointReferenceExpression Port =>
PrimaryEndpoint
.Property(EndpointProperty.Port);
71
/// <see cref="
PrimaryEndpoint
"/>. When set to <see langword="true"/>, the connection string
77
public bool TlsEnabled =>
PrimaryEndpoint
.TlsEnabled;
87
builder.Append($"{
PrimaryEndpoint
.Property(EndpointProperty.HostAndPort)}");
94
builder.Append($"{
PrimaryEndpoint
.GetTlsValue(
148
builder.Append($"{
PrimaryEndpoint
.Property(EndpointProperty.Scheme)}");
Aspire.Hosting.Redis.Tests (6)
AddRedisTests.cs (3)
306
Assert.Equal($"{redis1.Resource.
PrimaryEndpoint
.TargetPort!.Value}", item.Value);
328
Assert.Equal($"{redis2.Resource.
PrimaryEndpoint
.TargetPort!.Value}", item.Value);
350
Assert.Equal($"{redis3.Resource.
PrimaryEndpoint
.TargetPort!.Value}", item.Value);
RedisFunctionalTests.cs (3)
172
Assert.Equal(redis1.Resource.
PrimaryEndpoint
.TargetPort, db.Port);
178
Assert.Equal(redis2.Resource.
PrimaryEndpoint
.TargetPort, db.Port);
184
Assert.Equal(redis3.Resource.
PrimaryEndpoint
.TargetPort, db.Port);