Skip to content

Instantly share code, notes, and snippets.

@fabiomarreco
Last active November 13, 2015 16:25
Show Gist options
  • Save fabiomarreco/ef63ddfbc35675bf11cc to your computer and use it in GitHub Desktop.
Save fabiomarreco/ef63ddfbc35675bf11cc to your computer and use it in GitHub Desktop.
Creating new Service Reference from Known Service Interface
interface IServiceInterfaceChannel : IServiceInterface, IClientChannel
{
}
class Program
{
void Main()
{
var factory = new ClientFactory<IServiceInterfaceChannel>();
IServiceInterfaceChannel client = factory.CreateChannel();
client.ExecuteServiceMethod();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment