protected override List <string> PerformExecution(Dictionary <string, string> evaluatedValues) { try { var dropboxResult = DropboxSingleExecutor.ExecuteTask(_dropboxClientWrapper); if (IsUplodValidSuccess) { //FileSuccesResult = GlobalConstants.DropBoxSucces; FileMetadata = ((DropboxUploadSuccessResult)dropboxResult).GerFileMetadata(); } else { Exception = ((DropboxFailureResult)dropboxResult).GetException(); } return(new List <string> { string.Empty }); } catch (Exception e) { //dataObject.Environment.AddError(e.Message); Dev2Logger.Error(e.Message, e); //FileSuccesResult = GlobalConstants.DropBoxFailure; Exception = new DropboxFailureResult(new Exception()).GetException(); return(new List <string> { string.Empty }); } }
protected override List <string> PerformExecution(Dictionary <string, string> evaluatedValues) { try { var dropboxResult = DropboxSingleExecutor.ExecuteTask(_dropboxClient); if (!IsUplodValidSuccess) { Exception = ((DropboxFailureResult)dropboxResult).GetException(); } return(new List <string> { string.Empty }); } catch (Exception e) { Dev2Logger.Error(e.Message, e, GlobalConstants.WarewolfError); Exception = new DropboxFailureResult(new Exception()).GetException(); return(new List <string> { string.Empty }); } }