There are two things you need to remember when making a duplex contract under indigo beta 1, the first is that you can only use one way calls on the contract and you also need to specify the callback contract in the main contract.
On the client side to open a call to a duplex contract you need to use the CreateDuplexChannel call on the ChannelFactory which specifies a service to callback on and to get the channel to talk back on on the service side you use the OperationContext.Current.GetCallbackChannel<CallbackContract> call.
Here is the contract to be used:
The [ServiceContract] attribute has the CallbackContract attrbribute associated with it and this lets you specify the callback contract to use to talk back to the client. If this is specified on a contract then you must use CreateDuplexChannel to open a connection to the channel, using CreateChannel will throw an exception saying that you need to use a duplex contract.
The service will look like this:
This uses the callback channel to call back onto the client. When the client opens up a channel on the client side it needs to specify an instance of the IPong interface to talk back to. This is the code that will be called and used the the duplex channel request comes in from the service.