Skip to content

Commit 4a46537

Browse files
committed
removed the check for only WebHttp Binding. Its not working when https
is used and there is only one service.
1 parent 04cbb02 commit 4a46537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Moryx.Tools.Wcf/Client/Connector/WebHttpServiceConnectorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private async Task EvaluateResponse(Task<Communication.Endpoints.Endpoint[]> res
103103
}
104104

105105
// Parse endpoint url
106-
var endpoint = resp.Result.FirstOrDefault(e => ((Endpoint)e).Binding == ServiceBindingType.WebHttp);
106+
var endpoint = resp.Result.FirstOrDefault();
107107
if (endpoint == null || string.IsNullOrEmpty(endpoint.Address))
108108
{
109109
Logger.Log(LogLevel.Error, "Endpoint for {0} has wrong binding or empty address: {1}-{2}",

0 commit comments

Comments
 (0)