示例#1
0
        private readonly ILogCleaner _self; // for unit testing private calls by the instance to itself

        /// <summary>
        /// </summary>
        public LogCleaner()
        {
            _self             = this;
            _dateTimeProvider = new UniversalDateTime();
            DirectoryCleaner  = new DirectoryCleaner(new FileSystemOperations(new FileSystem()), _dateTimeProvider);
            TaskRunner        = new TaskRunner();
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompressedRollingFileAppender"/> class.
 /// </summary>
 public CompressedRollingFileAppender()
 {
     this.m_dateTime = new DefaultDateTime();
 }
		public PluginRollingFileAppender()
		{
			_dateTime = new DefaultDateTime();
		}
示例#4
0
 public PluginRollingFileAppender()
 {
     _dateTime = new DefaultDateTime();
 }
示例#5
0
 public DirectoryCleaner(IFileSystemOperations ops, RollingFileAppender.IDateTime time)
 {
     _ops  = ops;
     _time = time;
 }