Service fabric - how can I open an external wcf service

I looked at the wcf docs in the azure service fabric , but it seems the only examples show how to expose it to other services. I want to show the wcf endpoint as I would remain a rest endpoint, so I can map it to a public IP address.

Any ideas?

+4
source share
1 answer

I had to solve this exact scenario.

You do not need to return the listener at all. You need to open the endpoint in "Service Manifest.xml". You bind the ssl certificate here etc. (I assume you know this part).

<Endpoint Name="Test.WcfTypeEndpoint" Protocol="https" Type="Input" CertificateRef="MySSL" Port="44330"  />

. , node, .

public class InternalBinding : Binding
{
    private readonly HttpsTransportBindingElement _transport;

    public InternalBinding()
    {
         _transport = new HttpTransportBindingElement
         {
             HostNameComparisonMode = HostNameComparisonMode.StrongWildcard,
             // etc
         }
    }
}
0

All Articles