public bool Unzip() { try { bool success = UnzipUtil(); if (success && Verify()) { return(true); } else { //Call the next item in chain of responsibility if (m_NextActor == null) { return(false); } m_NextActor.Init(ZipFileName, OutputFolderName, VerifyName); return(m_NextActor.Unzip()); } } catch (Exception e) { } return(false); }
public async Task <HttpResponseMessage> Handle(UploadModel message) { await _fileSaver.SaveFile(message.File, message.Username); var unzipped = await _unzipper.Unzip(message.File); var encrypted = _encryptor.Encrypt(unzipped); var response = await _webRequester.Send(new EncryptedContent(encrypted, message.File.FileName), message.Username, message.Password); return(response); }