Exemplo n.º 1
0
        public UserContents GetUserWithMachines(Credentials c)
        {
            var cl = new Ref.FileSyncModelClient();

            try {
                UserContents u = null;
                u = cl.GetUserWithMachines(c);
                cl.Close();
                if (u == null)
                {
                    throw new ActionException("Received a null object.", ActionType.User);
                }
                return(u);
            } catch (Exception ex) {
                cl.Abort();
                throw new ActionException("Unable to get machines for a given user.",
                                          ActionType.User, ex);
            }
        }