Created
December 30, 2015 06:30
-
-
Save arman-hpp/e9a2cf8af1ef9bdb96f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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