Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created February 27, 2019 13:04
Show Gist options
  • Select an option

  • Save PatrickKalkman/6bdbd8309e10d4193826a9d2c7189f9d to your computer and use it in GitHub Desktop.

Select an option

Save PatrickKalkman/6bdbd8309e10d4193826a9d2c7189f9d to your computer and use it in GitHub Desktop.
DuplexChannelFactory<imessagesenderwithcallback> duplexChannelFactory =
new DuplexChannelFactory<imessagesenderwithcallback>(this, binding, endpointAddress);
IMessageSenderWithCallBack duplexMessageSender = duplexChannelFactory.CreateChannel(endpointAddress);
duplexMessageSender.Subscribe();
duplexMessageSender.ShowMessage("message");
duplexMessageSender.Unsubscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment