static public void StartReplication(char subject) { var watch = System.Diagnostics.Stopwatch.StartNew(); Logger.Info("Start replication DBF-files to SQL Server."); parameters param = new parameters(subject); methods meth = new methods(ref param); try { if (File.Exists(param.destination)) { meth.Extract(); meth.RenameDir(); meth.PewPewDBFs(); } } catch (Exception e) { //param.log.Add(e.ToString()); Logger.Error(e); } watch.Stop(); var ellapsed = watch.Elapsed; Console.WriteLine("Replication ended. Ellapsed = " + ellapsed.TotalMinutes + " min."); Logger.Info("Replication ended. Ellapsed = " + ellapsed.TotalMinutes + " min."); }