Esempio n. 1
0
 /* -------------------------------- Factory Services ------------------------------------ */
 public int[] GetScriptableMachines()
 {
     try
     {
         List <int> result = new List <int>();
         System.Nullable <int>[] remote = factoryService.getScriptableMachines();
         foreach (int?rId in remote)
         {
             result.Add(rId.Value);
         }
         return(result.ToArray <int>());
     }
     catch (EndpointNotFoundException)
     {
         ClientServerEvent(this, new ClientServerEventArgs());
     }
     catch (FaultException)
     {
         ClientServerEvent(this, new ClientServerEventArgs("Fehler auf Server"));
     }
     return(null);
 }