private void CreateCSVProcessTask(LoadMetadata lmd, TableInfo ti, string regex) { var pt = new ProcessTask(CatalogueRepository, lmd, LoadStage.Mounting); pt.Path = typeof(AnySeparatorFileAttacher).FullName; pt.ProcessTaskType = ProcessTaskType.Attacher; pt.Name = "Load " + ti.GetRuntimeName(); pt.SaveToDatabase(); pt.CreateArgumentsForClassIfNotExists <AnySeparatorFileAttacher>(); pt.SetArgumentValue("FilePattern", regex); pt.SetArgumentValue("Separator", ","); pt.SetArgumentValue("TableToLoad", ti); pt.Check(new ThrowImmediatelyCheckNotifier()); }