woggles
woggles

Reputation: 7444

Keep Azure WCF http relay alive

I have set up a relay successfully on an existing service by adding an endpoint to my local WCF service

endpoint:

<endpoint address="https://xxxx.servicebus.windows.net/brokers" binding="basicHttpRelayBinding" contract="Services.WebServices.IBrokerService" behaviorConfiguration="clients" bindingConfiguration="HttpRelayConfiguration"/>

behaviour:

<endpointBehaviors>
            <behavior name="clients">
                <transportClientEndpointBehavior>
                    <tokenProvider>
                        <sharedAccessSignature keyName="RootManageSharedAccessKey" key="dsfsdfsdfsdfds"/>
                    </tokenProvider>
                </transportClientEndpointBehavior>
            </behavior>
        </endpointBehaviors>

binding:

<basicHttpRelayBinding>
            <binding name="HttpRelayConfiguration"/>                
        </basicHttpRelayBinding>

Its working great but if I don't access the underlying WCF service through the browser for a while azure doesn't pick up the relay.

What is the easiest way to ensure that the relay is always available when the underlying WCF service is up and running?

Upvotes: 2

Views: 88

Answers (0)

Related Questions