亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bufferingforwardingappender.cs

?? 詳細(xì)講述了數(shù)據(jù)庫編程
?? CS
字號:
#region Copyright & License
//
// Copyright 2001-2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion

using System;

using log4net.Util;
using log4net.Layout;
using log4net.Core;

namespace log4net.Appender
{
	/// <summary>
	/// Buffers events and then forwards them to attached appenders.
	/// </summary>
	/// <remarks>
	/// <para>
	/// The events are buffered in this appender until conditions are
	/// met to allow the appender to deliver the events to the attached 
	/// appenders. See <see cref="BufferingAppenderSkeleton"/> for the
	/// conditions that cause the buffer to be sent.
	/// </para>
	/// <para>The forwarding appender can be used to specify different 
	/// thresholds and filters for the same appender at different locations 
	/// within the hierarchy.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	public class BufferingForwardingAppender : BufferingAppenderSkeleton, IAppenderAttachable
	{
		#region Public Instance Constructors

		/// <summary>
		/// Initializes a new instance of the <see cref="BufferingForwardingAppender" /> class.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Default constructor.
		/// </para>
		/// </remarks>
		public BufferingForwardingAppender()
		{
		}

		#endregion Public Instance Constructors

		#region Override implementation of AppenderSkeleton

		/// <summary>
		/// Closes the appender and releases resources.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Releases any resources allocated within the appender such as file handles, 
		/// network connections, etc.
		/// </para>
		/// <para>
		/// It is a programming error to append to a closed appender.
		/// </para>
		/// </remarks>
		override protected void OnClose()
		{
			// Remove all the attached appenders
			lock(this)
			{
				// Delegate to base, which will flush buffers
				base.OnClose();

				if (m_appenderAttachedImpl != null)
				{
					m_appenderAttachedImpl.RemoveAllAppenders();
				}
			}
		}

		#endregion Override implementation of AppenderSkeleton

		#region Override implementation of BufferingAppenderSkeleton

		/// <summary>
		/// Send the events.
		/// </summary>
		/// <param name="events">The events that need to be send.</param>
		/// <remarks>
		/// <para>
		/// Forwards the events to the attached appenders.
		/// </para>
		/// </remarks>
		override protected void SendBuffer(LoggingEvent[] events)
		{
			// Pass the logging event on to the attached appenders
			if (m_appenderAttachedImpl != null)
			{
				m_appenderAttachedImpl.AppendLoopOnAppenders(events);
			}
		}

		#endregion Override implementation of BufferingAppenderSkeleton

		#region Implementation of IAppenderAttachable

		/// <summary>
		/// Adds an <see cref="IAppender" /> to the list of appenders of this
		/// instance.
		/// </summary>
		/// <param name="newAppender">The <see cref="IAppender" /> to add to this appender.</param>
		/// <remarks>
		/// <para>
		/// If the specified <see cref="IAppender" /> is already in the list of
		/// appenders, then it won't be added again.
		/// </para>
		/// </remarks>
		virtual public void AddAppender(IAppender newAppender) 
		{
			if (newAppender == null)
			{
				throw new ArgumentNullException("newAppender");
			}
			lock(this)
			{
				if (m_appenderAttachedImpl == null) 
				{
					m_appenderAttachedImpl = new log4net.Util.AppenderAttachedImpl();
				}
				m_appenderAttachedImpl.AddAppender(newAppender);
			}
		}

		/// <summary>
		/// Gets the appenders contained in this appender as an 
		/// <see cref="System.Collections.ICollection"/>.
		/// </summary>
		/// <remarks>
		/// If no appenders can be found, then an <see cref="EmptyCollection"/> 
		/// is returned.
		/// </remarks>
		/// <returns>
		/// A collection of the appenders in this appender.
		/// </returns>
		virtual public AppenderCollection Appenders
		{
			get
			{
				lock(this)
				{
					if (m_appenderAttachedImpl == null)
					{
						return AppenderCollection.EmptyCollection;
					}
					else 
					{
						return m_appenderAttachedImpl.Appenders;
					}
				}
			}
		}

		/// <summary>
		/// Looks for the appender with the specified name.
		/// </summary>
		/// <param name="name">The name of the appender to lookup.</param>
		/// <returns>
		/// The appender with the specified name, or <c>null</c>.
		/// </returns>
		/// <remarks>
		/// <para>
		/// Get the named appender attached to this buffering appender.
		/// </para>
		/// </remarks>
		virtual public IAppender GetAppender(string name) 
		{
			lock(this)
			{
				if (m_appenderAttachedImpl == null || name == null)
				{
					return null;
				}

				return m_appenderAttachedImpl.GetAppender(name);
			}
		}

		/// <summary>
		/// Removes all previously added appenders from this appender.
		/// </summary>
		/// <remarks>
		/// <para>
		/// This is useful when re-reading configuration information.
		/// </para>
		/// </remarks>
		virtual public void RemoveAllAppenders() 
		{
			lock(this)
			{
				if (m_appenderAttachedImpl != null) 
				{
					m_appenderAttachedImpl.RemoveAllAppenders();
					m_appenderAttachedImpl = null;
				}
			}
		}

		/// <summary>
		/// Removes the specified appender from the list of appenders.
		/// </summary>
		/// <param name="appender">The appender to remove.</param>
		/// <returns>The appender removed from the list</returns>
		/// <remarks>
		/// The appender removed is not closed.
		/// If you are discarding the appender you must call
		/// <see cref="IAppender.Close"/> on the appender removed.
		/// </remarks>
		virtual public IAppender RemoveAppender(IAppender appender) 
		{
			lock(this)
			{
				if (appender != null && m_appenderAttachedImpl != null) 
				{
					return m_appenderAttachedImpl.RemoveAppender(appender);
				}
			}
			return null;
		}

		/// <summary>
		/// Removes the appender with the specified name from the list of appenders.
		/// </summary>
		/// <param name="name">The name of the appender to remove.</param>
		/// <returns>The appender removed from the list</returns>
		/// <remarks>
		/// The appender removed is not closed.
		/// If you are discarding the appender you must call
		/// <see cref="IAppender.Close"/> on the appender removed.
		/// </remarks>
		virtual public IAppender RemoveAppender(string name) 
		{
			lock(this)
			{
				if (name != null && m_appenderAttachedImpl != null)
				{
					return m_appenderAttachedImpl.RemoveAppender(name);
				}
			}
			return null;
		}
  
		#endregion Implementation of IAppenderAttachable

		#region Private Instance Fields

		/// <summary>
		/// Implementation of the <see cref="IAppenderAttachable"/> interface
		/// </summary>
		private AppenderAttachedImpl m_appenderAttachedImpl;

		#endregion Private Instance Fields
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆午夜三级精品| 国产精品黄色在线观看 | 一本色道久久加勒比精品| 国产成人久久精品77777最新版本| 亚洲日本护士毛茸茸| 国产欧美1区2区3区| 国产精品一品二品| 成人高清在线视频| 国产凹凸在线观看一区二区| 国产精品成人免费在线| 国产精品乱人伦中文| 精品成人一区二区三区四区| 91精品啪在线观看国产60岁| 精品视频1区2区3区| 国产成人99久久亚洲综合精品| 性做久久久久久免费观看欧美| 亚洲男帅同性gay1069| 亚洲精品视频在线| 亚洲丝袜自拍清纯另类| 国产精品青草综合久久久久99| 欧美亚洲国产bt| 精品久久久久av影院| 亚洲精品在线观| 91麻豆精品国产自产在线| 在线日韩一区二区| 在线亚洲欧美专区二区| 在线看不卡av| 欧洲色大大久久| 欧美一区二区日韩| 久久亚洲捆绑美女| 欧美一级夜夜爽| 国产片一区二区| 亚洲精品日韩综合观看成人91| 亚洲人成网站在线| 国产精品久久二区二区| 自拍偷拍欧美精品| 一级做a爱片久久| 日产欧产美韩系列久久99| 黄网站免费久久| 不卡视频一二三| 成人国产精品免费观看| 91福利小视频| 日韩欧美久久一区| 亚洲免费观看在线视频| 日韩精品一卡二卡三卡四卡无卡| 日韩av网站免费在线| 日日夜夜一区二区| 国产成人精品影院| 欧美日韩另类国产亚洲欧美一级| 日韩一级成人av| 久久久久久久久久电影| 一区二区三区欧美日韩| www.欧美日韩国产在线| 91精品福利视频| 欧美va亚洲va在线观看蝴蝶网| 国产亚洲午夜高清国产拍精品| 亚洲综合免费观看高清完整版在线 | 91久久一区二区| 日韩欧美久久久| 三级欧美在线一区| 色婷婷综合久久久久中文| 欧美日韩在线免费视频| 精品国产乱子伦一区| 三级影片在线观看欧美日韩一区二区 | 欧美一区二区三区喷汁尤物| 亚洲国产精品成人综合色在线婷婷 | 久久久电影一区二区三区| 亚洲欧洲国产日本综合| 狠狠狠色丁香婷婷综合久久五月| jlzzjlzz国产精品久久| 欧美成人精品福利| 亚洲大尺度视频在线观看| 国产成人av电影| 欧美激情在线一区二区| 五月婷婷另类国产| 不卡av免费在线观看| 欧美三级中文字| 亚洲国产精品一区二区尤物区| 99精品视频在线观看| 久久久高清一区二区三区| 亚洲二区在线观看| 欧美一区二区三区视频在线| 亚洲男人的天堂av| 97国产精品videossex| 亚洲男同性恋视频| 成人做爰69片免费看网站| www亚洲一区| 成人黄色大片在线观看| 欧美韩日一区二区三区| 国内精品第一页| 国产精品电影院| 99久久精品久久久久久清纯| 精品国产乱码91久久久久久网站| 日本女人一区二区三区| 欧洲一区二区av| 亚洲一区二区四区蜜桃| 69堂精品视频| 日韩精品午夜视频| 欧美日韩高清影院| 日本中文一区二区三区| 欧美一区二区高清| 成人黄色免费短视频| 中文字幕一区二区三区在线不卡 | 日韩av一二三| 久久午夜电影网| 91成人免费电影| 亚洲gay无套男同| 欧美电视剧免费观看| 国产成人免费视频一区| 综合久久一区二区三区| 欧美日韩高清影院| 成人黄色在线视频| 一区二区日韩av| 9191成人精品久久| 99久久免费精品| 精品制服美女丁香| 中文字幕在线不卡一区二区三区| 7777精品伊人久久久大香线蕉超级流畅| 亚洲不卡在线观看| 91麻豆精品国产| 91精彩视频在线| 毛片av一区二区| 国产精品久久久久久久久久久免费看 | 亚洲欧洲成人自拍| 在线观看视频91| 亚洲大尺度视频在线观看| 久久午夜免费电影| 欧美撒尿777hd撒尿| 韩国理伦片一区二区三区在线播放| 国产精品视频一二| 日韩一区二区三区av| 欧美日韩1234| 一本到高清视频免费精品| 美女视频黄免费的久久 | 欧美日韩亚洲综合在线| 国产成人aaa| 日本最新不卡在线| 亚洲黄色av一区| 亚洲精品午夜久久久| 久久亚洲捆绑美女| 91福利在线看| 在线观看www91| 久久er精品视频| 午夜伦理一区二区| 亚洲午夜私人影院| 亚洲天堂网中文字| 国产日韩精品一区二区三区在线| 欧美一区二区三区色| 一本一道久久a久久精品| 麻豆国产精品官网| 免费成人在线观看视频| 一区二区三区欧美| 天涯成人国产亚洲精品一区av| 亚洲美女在线一区| 中文字幕日韩精品一区| 欧美国产综合一区二区| 欧美精品在线一区二区三区| 99精品久久99久久久久| 粉嫩久久99精品久久久久久夜| 国产精品一二三四区| 久久精品噜噜噜成人av农村| 自拍偷拍亚洲综合| 午夜精品久久久久久久| 自拍偷拍亚洲激情| 亚洲男同性视频| 亚洲在线视频一区| 五月天视频一区| 午夜精品久久久久久久久| 男女男精品视频网| 老色鬼精品视频在线观看播放| 国产精品综合一区二区三区| 免费成人性网站| 久久精品国产一区二区三区免费看| 国产一区二区伦理片| 狠狠网亚洲精品| 国内精品国产三级国产a久久| 丁香婷婷综合激情五月色| 国产精品一区三区| 欧洲生活片亚洲生活在线观看| 99视频一区二区| 欧美日本韩国一区二区三区视频| 6080亚洲精品一区二区| 精品av综合导航| 亚洲黄色录像片| 秋霞成人午夜伦在线观看| 成人毛片视频在线观看| 色天天综合色天天久久| 日本高清成人免费播放| 欧美mv日韩mv亚洲| 久久精品欧美日韩精品| 亚洲成人先锋电影| 看片的网站亚洲| 欧美无人高清视频在线观看| 欧美成人午夜电影| 国产亚洲人成网站| 日本麻豆一区二区三区视频| 精品综合免费视频观看| 欧美日韩国产123区| 国产亚洲一区字幕| 久久国产精品99久久人人澡|