コード例 #1
0
 public void RefreshPCStatuses(IEnumerable<PCInfo> data)
 {
     using (var webService = new WebService())
     {
         webService.UpdateData(
                 Settings.Default.webServiceUserName,
                 Settings.Default.webServiceUserPassword,
                 data.Select(TransformToWebEntity).ToArray());
     }
 }
コード例 #2
0
 public void RemoveMacFromQueue(string mac)
 {
     using (var webService = new WebService())
     {
         webService.RemoveMacFromQueue(
             Settings.Default.webServiceUserName,
             Settings.Default.webServiceUserPassword,
             mac);
     }
 }
コード例 #3
0
        public string[] GetMacsToTurnOn()
        {
            using (var webService = new WebService())
            {
                var result = webService.GetMacsToTurnOn(
                    Settings.Default.webServiceUserName,
                    Settings.Default.webServiceUserPassword);

                return result;
            }
        }