static void Main(string[] args) { using (var statusController = new StatusController(DbConnectionStringBuilder, LoggerFactory)) { var status = statusController.DataSyncStatus(); } }