static void Main(string[] args) { DuplexChannelFactory <IDemo> factory = new DuplexChannelFactory <IDemo>(new CallbackHandler(), "test_ep"); IDemo channel = factory.CreateChannel(); Console.WriteLine("Start to Call"); channel.PostNumber(15); Console.WriteLine("Calling is done"); Console.ReadLine(); }