microsoft / microsoft/aspire

ServiceEndPointResolver.GetEndPointsAsync not work with net.tcp scheme

Open
#3,746 1 comment 0 reactions 0 assignees View on GitHub
area-service-discovery
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Package: Microsoft.Extentions.ServiceDiscovery 8 preview 5

I would like to use the ServiceDiscovery library to be able to retrieve the Endpoint of a WCF service with net.tcp protocol.

But this code return null:

```cs
var endPointResolver = serviceProvider.GetRequiredService();
var result = await endPointResolver.GetEndPointAsync("net.tcp://basket", default).ConfigureAwait(false);
Assert.IsNull(result);
```

Configuration appSettings.json:

```json
{
"Services": {
"basket": {
"net.tcp": "net.tcp://localhost:82378"
}
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.