Example #1
0
        public ReplicationBase()
        {
            for (int i = 0; i < 15; i++)
            {
                database::Raven.Database.Extensions.IOExtensions.DeleteDirectory("Data #" + i);
            }

            var outputDebugStringAppender = new OutputDebugStringAppender
            {
                Layout = new SimpleLayout(),
            };

            outputDebugStringAppender.AddFilter(new LoggerMatchFilter
            {
                AcceptOnMatch = true,
                LoggerToMatch = "Raven.Bundles"
            });
            outputDebugStringAppender.AddFilter(new DenyAllFilter());
            BasicConfigurator.Configure(outputDebugStringAppender);
        }
Example #2
0
        public ReplicationBase()
        {
            for (int i = 0; i < 15; i++)
            {
                if (Directory.Exists("Data #" + i))
                {
                    Directory.Delete("Data #" + i, true);
                }
            }

            var outputDebugStringAppender = new OutputDebugStringAppender
            {
                Layout = new SimpleLayout(),
            };

            outputDebugStringAppender.AddFilter(new LoggerMatchFilter
            {
                AcceptOnMatch = true,
                LoggerToMatch = "Raven.Bundles"
            });
            outputDebugStringAppender.AddFilter(new DenyAllFilter());
            BasicConfigurator.Configure(outputDebugStringAppender);
        }