static void Main(string[] args) { var channel = new MachineClient("basic"); channel.GetMachineNameCompleted+=ChannelOnGetMachineNameCompleted; channel.GetMachineNameAsync(new MachineDTO {MachineID = "1",MachineName = "async machine"}); Console.WriteLine("some other operation is going on ..."); Console.ReadLine(); }
static void Main(string[] args) { var channel = new MachineClient("basic"); channel.GetMachineNameCompleted += ChannelOnGetMachineNameCompleted; channel.GetMachineNameAsync(new MachineDTO { MachineID = "1", MachineName = "async machine" }); Console.WriteLine("some other operation is going on ..."); Console.ReadLine(); }