Beispiel #1
0
 public FileStates GetFileStates(string path)
 {
     try
     {
         return(FileProvide.GetInstance(path).States);
     }
     catch (Exception e)
     {
         Log(e.ToString());
         throw;
     }
 }
Beispiel #2
0
 public string GetFileId(string path)
 {
     try
     {
         return(FileProvide.GetInstance(path).ID);
     }
     catch (Exception e)
     {
         Log(e.ToString());
         throw;
     }
 }
Beispiel #3
0
 public void StartUnprovideFileForAll(string path)
 {
     try
     {
         FileProvide file = FileProvide.GetInstance(path);
         Task.Run(new Action(file.Unprovide));
     }
     catch (Exception e)
     {
         Log(e.ToString());
         throw;
     }
 }
Beispiel #4
0
 public void UnprovideFileForAll(string path)
 {
     try
     {
         FileProvide file = FileProvide.GetInstance(path);
         file.Unprovide();
     }
     catch (Exception e)
     {
         Log(e.ToString());
         throw;
     }
 }
Beispiel #5
0
        public string ProvideFile(string path)
        {
            try
            {
                FileProvide file = FileProvide.GetInstance(path);
                file.ProvideOne();

                return(file.ID);
            }
            catch (Exception e)
            {
                Log(e.ToString());
                throw;
            }
        }
Beispiel #6
0
        public string StartProvideFile(string path)
        {
            try
            {
                FileProvide file = FileProvide.GetInstance(path);
                Task.Run(new Action(file.ProvideOne));

                return(file.ID);
            }
            catch (Exception e)
            {
                Log(e.ToString());
                throw;
            }
        }