protected override string[] Execute(CodeActivityContext context) { if (UseScope) { return(ExecuteWithScope(context)); } IWorkbookAdapter workbook = null; try { var filePath = WorkbookPath.Get(context); workbook = WorkbookAdapterFactory.Create(filePath); return(workbook.GetSheetNames()); } finally { workbook?.Dispose(); } }