Esempio n. 1
0
 private static void WriteCustomerPush(string portName, SmlComServiceClient proxy, Guid clientGuid, bool customerPush)
 {
     Console.WriteLine("Setting customer push mode to: " + customerPush);
     proxy.WriteCustomerPush(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), customerPush);
     var booleanResult = proxy.ReadCustomerPush(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Customer push mode read: " + Stringify(booleanResult));
     Console.WriteLine();
 }