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(); }
/// <summary> /// Initializes a new instance of the <see cref="CompressedRollingFileAppender"/> class. /// </summary> public CompressedRollingFileAppender() { this.m_dateTime = new DefaultDateTime(); }
public PluginRollingFileAppender() { _dateTime = new DefaultDateTime(); }
public PluginRollingFileAppender() { _dateTime = new DefaultDateTime(); }
public DirectoryCleaner(IFileSystemOperations ops, RollingFileAppender.IDateTime time) { _ops = ops; _time = time; }