Approach One:
InstanceContext callbackContext = new InstanceContext(new NameService());
DuplexChannelFactory<IMyService> factory = new DuplexChannelFactory<IMyService>(typeof(callbackContext), binding, address);
IMyService myService = factory.CreateChannel();
Approach Two
InstanceContext callbackContext = new InstanceContext(new NameService());
DuplexChannelFactory<IMyService> factory = new DuplexChannelFactory<IMyService>(typeof(NameService), binding, address);
IMyService myService = factory.CreateChannel(callbackContext);