Created
February 27, 2019 12:35
-
-
Save PatrickKalkman/ee144cd6d6a394718751de0e0eafc467 to your computer and use it in GitHub Desktop.
WCF client
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
EndpointAddress endpointAddress = new EndpointAddress(Configuration.CreateServerUriString()); | |
ChannelFactory<IMessageSender> channelFactory = new ChannelFactory<IMessageSender>(Configuration.CreateBinding(), endpointAddress); | |
IMessageSender messageSender = channelFactory.CreateChannel(endpointAddress); | |
messageSender.ShowMessage("Test message"); | |
((IChannel)messageSender).Close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment