20 references to PrimaryEndpoint
Aspire.Hosting.Azure.Redis (2)
AzureManagedRedisResource.cs (1)
101ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
AzureRedisCacheResource.cs (1)
82ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Redis (10)
RedisBuilderExtensions.cs (3)
317var endpoint = redisInstance.PrimaryEndpoint; 395context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.PrimaryEndpoint.Property(EndpointProperty.Host); 396context.EnvironmentVariables[$"RI_REDIS_PORT{counter}"] = redisInstance.PrimaryEndpoint.TargetPort!.Value;
RedisResource.cs (7)
57public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 62public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 74/// <see cref="PrimaryEndpoint"/>. When set to <see langword="true"/>, the connection string 80public bool TlsEnabled => PrimaryEndpoint.TlsEnabled; 90builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}"); 97builder.Append($"{PrimaryEndpoint.GetTlsValue( 151builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.Scheme)}");
Aspire.Hosting.Redis.Tests (6)
AddRedisTests.cs (3)
380Assert.Equal($"{redis1.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value); 402Assert.Equal($"{redis2.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value); 424Assert.Equal($"{redis3.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value);
RedisFunctionalTests.cs (3)
316Assert.Equal(redis1.Resource.PrimaryEndpoint.TargetPort, db.Port); 322Assert.Equal(redis2.Resource.PrimaryEndpoint.TargetPort, db.Port); 328Assert.Equal(redis3.Resource.PrimaryEndpoint.TargetPort, db.Port);
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (2)
1955var otherRedisService = await WaitForAllocatedProxylessServiceAsync(s, redisNoPort.Resource, redisNoPort.Resource.PrimaryEndpoint) 2035var otherRedisService = await WaitForAllocatedProxylessServiceAsync(s, redisNoPort.Resource, redisNoPort.Resource.PrimaryEndpoint)