How yanlynn/sftpout_listener works
SFTPOut_Listener is a Windows service that periodically claims ready batch records, builds filenames from database rows, and sends corresponding PGP and SGL files to configured banks. Its main workflow is visible in the service loop: read and claim batches, validate configuration and files, transfer both files in order, update status, and archive sent files. The graph includes configuration, database access, process execution, and logging as supporting layers. Source excerpts show the workflow and command-line execution; the remote bank connection is described but not implemented directly in the shown code.
Main entry points: SFTPOutListener.cs Batch Listener · TransferClients.cs Transfer Client · BatchDao.cs Batch DAO · Program.cs Service Entry
Components 13
Service Runtime
- Service Entry
SFTPOut_Listener/Program.cs - Batch Listener
SFTPOut_Listener/SFTPOutListener.cs
Batch Workflow
- Batch Record
SFTPOut_Listener/Data/BatchInfo.cs - Transfer Client
SFTPOut_Listener/Transfer/TransferClients.cs
External Integrations
- Batch DAO
SFTPOut_Listener/Data/BatchDao.cs - Local Batch Files
Support Layers
- Runtime Settings
SFTPOut_Listener/Config/ConfigData.cs - Bank Settings
SFTPOut_Listener/Config/BankSettings.cs - Process Runner
SFTPOut_Listener/Util/ProcessRunner.cs - Logger
SFTPOut_Listener/Util/Logger.cs
Other components
- Windows Service Host
- Bank Transfer Endpoint
- Batch Database
Connections 14
- Windows Service Host → Service Entry: starts service
SFTPOut_Listener/Program.cs - Service Entry → Batch Listener: creates and runs
SFTPOut_Listener/Program.cs - Batch Listener → Runtime Settings: loads settings
SFTPOut_Listener/SFTPOutListener.cs - Batch Listener → Bank Settings: loads bank settings
SFTPOut_Listener/SFTPOutListener.cs - Batch Listener → Batch DAO: queries and updates
SFTPOut_Listener/SFTPOutListener.cs - Batch DAO → Batch Database: reads and writes batches
SFTPOut_Listener/Data/BatchDao.cs - Batch DAO → Batch Record: creates records
SFTPOut_Listener/Data/BatchDao.cs - Batch Listener → Batch Record: validates and names
SFTPOut_Listener/SFTPOutListener.cs - Batch Listener → Local Batch Files: checks copies archives
SFTPOut_Listener/SFTPOutListener.cs - Batch Listener → Transfer Client: creates transfer client
SFTPOut_Listener/SFTPOutListener.cs - Transfer Client → Process Runner: runs transfer command
SFTPOut_Listener/Transfer/TransferClients.cs - Transfer Client → Bank Transfer Endpoint: transfers files
- Batch Listener → Logger: logs workflow
SFTPOut_Listener/SFTPOutListener.cs - Transfer Client → Logger: logs transfer results
SFTPOut_Listener/Transfer/TransferClients.cs