protected override void OnStart(string[] args) { DataBaseWorker reader = new DataBaseWorker(dataOptions.ConnectionString); FileTransfer fileTransfer = new FileTransfer(dataOptions.OutputFolder, dataOptions.SourcePath); string customersFileName = "customers"; await reader.GetCustomersAsync(dataOptions.OutputFolder, appInsights, customersFileName); await fileTransfer.SendFileToFtpAsync($"{customersFileName}.xml"); await fileTransfer.SendFileToFtpAsync($"{customersFileName}.xsd"); await appInsights.InsertInsightAsync("Files uploaded"); }