When creating the WCF binding with the Azure service bus I get the connection timeout exception when try to open the ServiceHost.
Below is my code
var sh = new ServiceHost(typeof(ProblemSolver)); sh.AddServiceEndpoint(typeof(IProblemSolver), new NetTcpRelayBinding(), ServiceBusEnvironment.CreateServiceUri("sb","myservicebusnamespace", "problemsolver")). Behaviors.Add(new TransportClientEndpointBehavior { TokenProvider = TokenProvider.CreateSharedSecretTokenProvider("owner", "mykey") }); sh.Open(); Console.WriteLine("Press ENTER to close"); Console.ReadLine(); sh.Close();
My blog : http://thuruinhttp.wordpress.com