Skip to content

Instantly share code, notes, and snippets.

@arman-hpp
Created December 30, 2015 06:30
Show Gist options
  • Save arman-hpp/e9a2cf8af1ef9bdb96f0 to your computer and use it in GitHub Desktop.
Save arman-hpp/e9a2cf8af1ef9bdb96f0 to your computer and use it in GitHub Desktop.
var binding = new BasicHttpBinding();
var address = new EndpointAddress("http://localhost:65182/TestService.svc");
var factory = new ChannelFactory<ITestService>(binding, address);
var channel = factory.CreateChannel();
Console.WriteLine("Result: {0}", channel.DoWork(2, 3));
Console.ReadKey();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment