コード例 #1
0
        public FileContents GetFileWithContent(Credentials c, MachineContents m,
				DirectoryContents d, FileIdentity fid)
        {
            var cl = new Ref.FileSyncModelClient();
            try {
                FileContents f = null;
                f = cl.GetFileWithContent(c, m, d, f);
                cl.Close();
                if (f == null)
                    throw new ActionException("Received a null object.", ActionType.User);
                return f;
            } catch (Exception ex) {
                cl.Abort();
                throw new ActionException("Error while downloading file contents from database.",
                    ActionType.File, MemeType.Fuuuuu, ex);
            }
        }