예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public List <FileProcessInfo> GetActiveProcesses()
        {
            var result = FileUploadManager.GetActiveProcesses();

            return(result);
        }