15 references to PrimaryEndpoint
Aspire.Hosting.MongoDB (13)
MongoDBBuilderExtensions.cs (2)
209var port = resource.PrimaryEndpoint.TargetPort 788var targetPort = resource.PrimaryEndpoint.TargetPort;
MongoDBServerResource.cs (6)
44public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 49public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 102/// This property proxies through to <see cref="EndpointAnnotation.TlsEnabled"/> on the <see cref="PrimaryEndpoint"/>, 108public bool TlsEnabled => PrimaryEndpoint.TlsEnabled; 144builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}"); 180builder.Append($"{PrimaryEndpoint.GetTlsValue(
MongoDBSingleMemberReplicaSet.cs (1)
66var host = $"localhost:{resource.PrimaryEndpoint.TargetPort}";
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (2)
157Internal: $"{m.Name}:{m.PrimaryEndpoint.TargetPort!.Value}", 159External: await m.PrimaryEndpoint
ReplicaSet\MongoDBReplicaSetResource.cs (2)
104builder.Append($"{member.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}"); 121builder.Append($"{membersList[0].PrimaryEndpoint.GetTlsValue(
Aspire.Hosting.MongoDB.Tests (2)
SingleMemberReplicaSetFunctionalTests.cs (2)
198originalPort = mongo1.Resource.PrimaryEndpoint.Port; 227Assert.Equal(2, new[] { originalPort, mongo2.Resource.PrimaryEndpoint.Port }.Distinct().Count());