コード例 #1
0
 /// <summary>
 /// Clears internal references to the underlying <see cref="T:System.IO.TextWriter" />
 /// and other variables.
 /// </summary>
 /// <remarks>
 /// <para>
 /// Subclasses can override this method for an alternate closing behavior.
 /// </para>
 /// </remarks>
 protected virtual void Reset()
 {
     WriteFooterAndCloseWriter();
     m_qtw = null;
 }
コード例 #2
0
ファイル: FileAppender.cs プロジェクト: liguifa/log4net
 /// <summary>
 /// Sets the quiet writer being used.
 /// </summary>
 /// <param name="writer">the writer over the file stream that has been opened for writing</param>
 /// <remarks>
 /// <para>
 /// This method can be overridden by sub classes that want to
 /// wrap the <see cref="TextWriter"/> in some way.
 /// </para>
 /// </remarks>
 virtual protected void SetQWForFiles(TextWriter writer)
 {
     QuietWriter = new QuietTextWriter(writer, ErrorHandler);
 }
コード例 #3
0
 protected virtual void Reset()
 {
     this.WriteFooterAndCloseWriter();
     this.m_qtw = null;
 }