public bool IsAlive() { try { if (Directory.Exists(this.ExtractsFolder)) { // Try to create and move file var filePath = CprBroker.Utilities.Strings.NewUniquePath(this.ExtractsFolder, "txt"); File.WriteAllText(filePath, "ABC"); string ss = File.ReadAllText(filePath); var tmpFile = ExtractManager.MoveToProcessed(this.ExtractsFolder, filePath); File.Delete(tmpFile); if (this.HasFtpSource) { var files = ListFtpContents(); } return(true); } } catch (Exception ex) { Admin.LogException(ex); while (ex.InnerException != null) { Admin.LogException(ex.InnerException); ex = ex.InnerException; } } return(false); }