// TODO: need a place to parse options to get orgCode, processName, batchId // actually when this is a service, those values will be passed in by the caller // probably need to make this a service so that it can be called from a scheduler or a UI // or use the db as the link to all services; queue the requests there and let the service pick them up // TODO: eventually make all of this async static void Main(string[] args) { // defaulting values that will be passed in by the main service // TODO: decide if the config service should live in the main service // and pass in the actual config instead of the values listed below var orgCode = "LionKing"; var processCode = "PrideRock"; var batchId = 1; var exportRoot = new DirectoryInfo(AppConfig["ExportBaseDirectory"]); var config = GetConfig(exportRoot, orgCode, processCode); var services = ServicesFactory.GetServices(exportRoot, config.OrgUnit, config.Process); var exportService = new ExportService(services); exportService.Run(batchId); }