public StartProcessResponse StartProcess(StartProcessRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var processInfo = FileUploadManager.StartProcess(request.StartInfo, request.DataStream); var response = new StartProcessResponse(); response.ProcessInfo = processInfo; return(response); }
public FileExistsResponse FileExists(FileExistsRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } FileProcessInfo processInfo; var exists = FileUploadManager.FileExists(request.FileInfo, out processInfo); var result = new FileExistsResponse(); result.Result = exists; result.InProcess = processInfo; return(result); }
public List <FileProcessInfo> GetActiveProcesses() { var result = FileUploadManager.GetActiveProcesses(); return(result); }