public FileStates GetFileStates(string path) { try { return(FileProvide.GetInstance(path).States); } catch (Exception e) { Log(e.ToString()); throw; } }
public string GetFileId(string path) { try { return(FileProvide.GetInstance(path).ID); } catch (Exception e) { Log(e.ToString()); throw; } }
public void StartUnprovideFileForAll(string path) { try { FileProvide file = FileProvide.GetInstance(path); Task.Run(new Action(file.Unprovide)); } catch (Exception e) { Log(e.ToString()); throw; } }
public void UnprovideFileForAll(string path) { try { FileProvide file = FileProvide.GetInstance(path); file.Unprovide(); } catch (Exception e) { Log(e.ToString()); throw; } }
public string ProvideFile(string path) { try { FileProvide file = FileProvide.GetInstance(path); file.ProvideOne(); return(file.ID); } catch (Exception e) { Log(e.ToString()); throw; } }
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; } }