15 references to PrimaryEndpoint
Aspire.Hosting.MongoDB (13)
MongoDBBuilderExtensions.cs (2)
208var port = resource.PrimaryEndpoint.TargetPort 787var targetPort = resource.PrimaryEndpoint.TargetPort;
MongoDBServerResource.cs (6)
47public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 52public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 105/// This property proxies through to <see cref="EndpointAnnotation.TlsEnabled"/> on the <see cref="PrimaryEndpoint"/>, 111public bool TlsEnabled => PrimaryEndpoint.TlsEnabled; 147builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}"); 183builder.Append($"{PrimaryEndpoint.GetTlsValue(
MongoDBSingleMemberReplicaSet.cs (1)
66var host = $"localhost:{resource.PrimaryEndpoint.TargetPort}";
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (2)
159Internal: $"{m.Name}:{m.PrimaryEndpoint.TargetPort!.Value}", 161External: await m.PrimaryEndpoint
ReplicaSet\MongoDBReplicaSetResource.cs (2)
107builder.Append($"{member.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}"); 124builder.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());