Beispiel #1
0
        public async Task <FileInfo> AddFileCopy(DumpIdentifier id, FileInfo file, SDFileType type)
        {
            var newFile = await storage.AddFileCopy(id, file);

            AddSDFile(id, file.Name, type);
            return(newFile);
        }
Beispiel #2
0
        private void AddSDFile(DumpIdentifier id, string filename, SDFileType type)
        {
            var dumpInfo = Get(id);

            dumpInfo.Files.Add(new SDFileEntry()
            {
                FileName = filename,
                Type     = type
            });
            storage.Store(dumpInfo);
        }
Beispiel #3
0
        private void AddSDFile(string bundleId, string dumpId, string filename, SDFileType type)
        {
            var dumpInfo = Get(bundleId, dumpId);

            dumpInfo.Files.Add(new SDFileEntry()
            {
                FileName = filename,
                Type     = type
            });
            storage.Store(dumpInfo);
        }
Beispiel #4
0
 public void AddFile(DumpIdentifier id, string filename, SDFileType type)
 {
     AddSDFile(id, filename, type);
 }
Beispiel #5
0
 internal void AddFile(string bundleId, string dumpId, string filename, SDFileType type)
 {
     AddSDFile(bundleId, dumpId, filename, type);
 }
Beispiel #6
0
        internal async Task AddFileCopy(string bundleId, string dumpId, FileInfo file, SDFileType type)
        {
            await storage.AddFileCopy(bundleId, dumpId, file);

            AddSDFile(bundleId, dumpId, file.Name, type);
        }
Beispiel #7
0
        internal async Task <FileInfo> AddFileCopy(string bundleId, string dumpId, FileInfo file, SDFileType type)
        {
            var newFile = await storage.AddFileCopy(bundleId, dumpId, file);

            AddSDFile(bundleId, dumpId, file.Name, type);
            return(newFile);
        }