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