11using FileSyncLibNet . Commons ;
22using FileSyncLibNet . FileCleanJob ;
33using FileSyncLibNet . FileSyncJob ;
4- using FileSyncLibNet . Logger ;
54using FileSyncLibNet . SyncProviders ;
65using Microsoft . Extensions . Logging ;
76using Newtonsoft . Json ;
87using Serilog ;
98using Serilog . Core ;
109using System ;
1110using System . Collections . Generic ;
12- using System . Diagnostics ;
13- using System . IO ;
1411using System . Linq ;
1512using System . Net ;
16- using System . Reflection ;
17- using System . Runtime . InteropServices ;
18- using System . Runtime . InteropServices . ComTypes ;
19- using System . Security . Cryptography . X509Certificates ;
20- using System . Text ;
2113using System . Threading ;
2214using File = System . IO . File ;
2315
@@ -35,7 +27,7 @@ public static void Main(string[] args)
3527 {
3628 ConfigureLogger ( ) ;
3729 log = LoggerFactory . CreateLogger ( "FileSyncAppMain" ) ;
38- if ( null != args && args . Length > 0 )
30+ if ( null != args && args . Length > 0 )
3931 {
4032 if ( args . Contains ( "debug" ) )
4133 {
@@ -46,8 +38,8 @@ public static void Main(string[] args)
4638 RunProgram ( ) ;
4739
4840 }
49-
50-
41+
42+
5143 static void RunProgram ( )
5244 {
5345 log . LogInformation ( "FileSyncApp - synchronizing folders and clean them up" ) ;
@@ -103,7 +95,7 @@ static void RunProgram()
10395 foreach ( var jobOption in readJobOptions )
10496 {
10597
106- jobOption . Value . Logger = LoggerFactory . CreateLogger ( jobOption . Key ) ;
98+ jobOption . Value . Logger = LoggerFactory . CreateLogger ( jobOption . Key ) ;
10799 Jobs . Add ( jobOption . Key , FileSyncJob . CreateJob ( jobOption . Value ) ) ;
108100 }
109101 JobsReady ? . Invoke ( null , EventArgs . Empty ) ;
0 commit comments