Exemple #1
0
 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();
 }
Exemple #2
0
        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();
        }