public void Act()
        {
            var viewRemover       = new ViewRemover(_connectionStringSettings);
            var connectionFactory = new DataConnectionFactory(_connectionStringSettings);
            var runner            = new BulkReplicationRunner(DefaultProvider, connectionFactory, viewRemover);

            runner.Run(_key.Key);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            var connectionStringSettings = new StateInitializationConnectionStringSettings(ConfigurationManager.ConnectionStrings);
            var viewRemover       = new ViewRemover(connectionStringSettings);
            var connectionFactory = new DataConnectionFactory(connectionStringSettings);
            var runner            = new BulkReplicationRunner(DefaultProvider, connectionFactory, viewRemover);

            foreach (var mode in args)
            {
                var sw = Stopwatch.StartNew();
                runner.Run(mode);
                Console.WriteLine($"{mode}, {sw.ElapsedMilliseconds}ms");
            }
        }