Custom Address to Clog Service

Mar 29, 2011 at 4:09 PM

Hello,

 

I need connect Clog to service similar to that way:

 

private void InitializeItoRightsService()
        {
            var binding = GetBinding();
            var serviceUrl = string.Format("{0}Services/ITORights.svc", GlobalSettings.AppUrl);
            var clientProxy = new ITORightsServiceClientProxy(binding, new EndpointAddress(serviceUrl));
            Container.RegisterInstance<IITORightsService>(clientProxy);
            Logger.InfoFormat("ITO ADDRESS: {0}", serviceUrl);
        }

My serviceUrl is dynamic so I can not use ServiceReference.config with constant address.

 

How I can do this for Clog service ?

Is there a possibility to create ClogClientProxy manualy ?