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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? globalcontextproperties.cs

?? 詳細講述了數據庫編程
?? 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 System.Collections;

namespace log4net.Util
{
	/// <summary>
	/// Implementation of Properties collection for the <see cref="log4net.GlobalContext"/>
	/// </summary>
	/// <remarks>
	/// <para>
	/// This class implements a properties collection that is thread safe and supports both
	/// storing properties and capturing a read only copy of the current propertied.
	/// </para>
	/// <para>
	/// This class is optimized to the scenario where the properties are read frequently
	/// and are modified infrequently.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	public sealed class GlobalContextProperties : ContextPropertiesBase
	{
		#region Private Instance Fields

		/// <summary>
		/// The read only copy of the properties.
		/// </summary>
		/// <remarks>
		/// <para>
		/// This variable is declared <c>volatile</c> to prevent the compiler and JIT from
		/// reordering reads and writes of this thread performed on different threads.
		/// </para>
		/// </remarks>
#if NETCF
		private ReadOnlyPropertiesDictionary m_readOnlyProperties = new ReadOnlyPropertiesDictionary();
#else
		private volatile ReadOnlyPropertiesDictionary m_readOnlyProperties = new ReadOnlyPropertiesDictionary();
#endif

		/// <summary>
		/// Lock object used to synchronize updates within this instance
		/// </summary>
		private readonly object m_syncRoot = new object();

		#endregion Private Instance Fields

		#region Public Instance Constructors

		/// <summary>
		/// Constructor
		/// </summary>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="GlobalContextProperties" /> class.
		/// </para>
		/// </remarks>
		internal GlobalContextProperties()
		{
		}

		#endregion Public Instance Constructors

		#region Public Instance Properties

		/// <summary>
		/// Gets or sets the value of a property
		/// </summary>
		/// <value>
		/// The value for the property with the specified key
		/// </value>
		/// <remarks>
		/// <para>
		/// Reading the value for a key is faster than setting the value.
		/// When the value is written a new read only copy of 
		/// the properties is created.
		/// </para>
		/// </remarks>
		override public object this[string key]
		{
			get 
			{ 
				return m_readOnlyProperties[key];
			}
			set
			{
				lock(m_syncRoot)
				{
					PropertiesDictionary mutableProps = new PropertiesDictionary(m_readOnlyProperties);

					mutableProps[key] = value;

					m_readOnlyProperties = new ReadOnlyPropertiesDictionary(mutableProps);
				}
			}
		}

		#endregion Public Instance Properties

		#region Public Instance Methods

		/// <summary>
		/// Remove a property from the global context
		/// </summary>
		/// <param name="key">the key for the entry to remove</param>
		/// <remarks>
		/// <para>
		/// Removing an entry from the global context properties is relatively expensive compared
		/// with reading a value. 
		/// </para>
		/// </remarks>
		public void Remove(string key)
		{
			lock(m_syncRoot)
			{
				if (m_readOnlyProperties.Contains(key))
				{
					PropertiesDictionary mutableProps = new PropertiesDictionary(m_readOnlyProperties);

					mutableProps.Remove(key);

					m_readOnlyProperties = new ReadOnlyPropertiesDictionary(mutableProps);
				}
			}
		}

		/// <summary>
		/// Clear the global context properties
		/// </summary>
		public void Clear()
		{
			lock(m_syncRoot)
			{
				m_readOnlyProperties = new ReadOnlyPropertiesDictionary();
			}
		}

		#endregion Public Instance Methods

		#region Internal Instance Methods

		/// <summary>
		/// Get a readonly immutable copy of the properties
		/// </summary>
		/// <returns>the current global context properties</returns>
		/// <remarks>
		/// <para>
		/// This implementation is fast because the GlobalContextProperties class
		/// stores a readonly copy of the properties.
		/// </para>
		/// </remarks>
		internal ReadOnlyPropertiesDictionary GetReadOnlyProperties()
		{
			return m_readOnlyProperties;
		}

		#endregion Internal Instance Methods
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产黑色紧身裤美女| 91免费视频观看| 一区二区高清免费观看影视大全| 久久九九久精品国产免费直播| 欧美一级理论性理论a| 欧美人妖巨大在线| 在线播放国产精品二区一二区四区| 欧美最新大片在线看| 色欧美乱欧美15图片| 欧美四级电影网| 337p亚洲精品色噜噜狠狠| 9191久久久久久久久久久| 日韩欧美国产1| 欧美国产精品专区| 亚洲黄色录像片| 亚洲成av人**亚洲成av**| 天堂久久久久va久久久久| 奇米精品一区二区三区四区 | 热久久久久久久| 日本伊人色综合网| 国产一区视频在线看| 不卡视频在线看| 欧美日韩黄色一区二区| 欧美成人在线直播| 中文字幕一区二区在线播放| 亚洲一区二区三区在线| 激情图片小说一区| av午夜一区麻豆| 欧美日韩国产高清一区| 久久一二三国产| 一区av在线播放| 国产一区在线精品| 欧美日韩卡一卡二| 欧美国产日韩精品免费观看| 亚洲国产视频在线| 国产福利91精品一区二区三区| 在线一区二区观看| 久久久精品黄色| 无码av免费一区二区三区试看 | 色婷婷精品久久二区二区蜜臂av| 欧美日韩国产不卡| 亚洲猫色日本管| 国产乱色国产精品免费视频| 欧美日韩亚洲综合| 亚洲欧洲成人av每日更新| 蜜臀av性久久久久蜜臀av麻豆| 99在线精品免费| 久久嫩草精品久久久精品| 亚洲国产精品久久人人爱蜜臀| 懂色中文一区二区在线播放| 欧美一区二区免费视频| 一区二区三区久久久| 国产精品911| 精品久久久久久久久久久久久久久| 亚洲伦理在线精品| 成人一区二区三区在线观看| 精品美女一区二区| 日本女优在线视频一区二区| 欧美午夜理伦三级在线观看| 国产精品久久久久婷婷二区次| 国产在线播放一区二区三区| 日韩视频一区二区| 日韩黄色免费网站| 在线成人av网站| 亚洲大片一区二区三区| 91福利国产成人精品照片| 亚洲天堂免费在线观看视频| 成人网男人的天堂| 国产精品欧美综合在线| 成人在线视频一区| 欧美国产日韩亚洲一区| 成人av网在线| 最新欧美精品一区二区三区| av电影在线不卡| 亚洲色图制服丝袜| 91捆绑美女网站| 一区二区三区在线视频免费| 91久久精品日日躁夜夜躁欧美| 亚洲日本韩国一区| 91精品1区2区| 亚洲电影欧美电影有声小说| 欧美福利视频一区| 免费观看91视频大全| 精品国精品国产| 国产精选一区二区三区| 中文字幕欧美日韩一区| 成人av小说网| 亚洲综合精品自拍| 91精品国产福利| 韩国精品主播一区二区在线观看| 精品国产一区二区三区不卡 | 亚洲精品乱码久久久久久| 99国产一区二区三精品乱码| 亚洲精品菠萝久久久久久久| 91久久国产综合久久| 免费成人你懂的| 国产视频在线观看一区二区三区| 波波电影院一区二区三区| 亚洲综合一区二区三区| 欧美精品v国产精品v日韩精品| 蜜臀99久久精品久久久久久软件 | 中文字幕av在线一区二区三区| 成人av电影在线网| 亚洲香肠在线观看| 精品国产污污免费网站入口| 99久久免费国产| 日本欧美肥老太交大片| 中文字幕二三区不卡| 欧美在线观看禁18| 国内精品久久久久影院薰衣草 | 国内成人免费视频| 国产精品久久免费看| 5858s免费视频成人| 盗摄精品av一区二区三区| 亚洲成精国产精品女| 国产亚洲欧美色| 欧美精品自拍偷拍| 播五月开心婷婷综合| 麻豆精品精品国产自在97香蕉| 国产精品区一区二区三| 日韩美女在线视频| 欧洲av一区二区嗯嗯嗯啊| 国产大陆亚洲精品国产| 午夜精品福利在线| 亚洲天堂成人网| 久久伊人蜜桃av一区二区| 欧美日韩一区视频| 91在线视频免费观看| 国产一区二区三区在线观看精品 | 精品国产1区2区3区| 91麻豆国产精品久久| 国产不卡视频一区二区三区| 日本不卡免费在线视频| 亚洲一区在线电影| 亚洲视频在线观看一区| 久久久久久免费网| 欧美r级电影在线观看| 欧美日韩大陆一区二区| 在线一区二区三区四区五区 | 久热成人在线视频| 亚洲va天堂va国产va久| 亚洲美女在线国产| 亚洲精品亚洲人成人网| 亚洲人快播电影网| 国产精品色眯眯| 国产精品家庭影院| 日本一区二区三区久久久久久久久不| 精品国产一区久久| www激情久久| 欧美国产禁国产网站cc| 欧美成人a在线| 亚洲精品一区二区三区在线观看| 精品国产亚洲在线| 国产欧美日韩不卡免费| 亚洲国产精品国自产拍av| 久久蜜桃一区二区| 中文字幕免费观看一区| 国产精品萝li| 亚洲美女电影在线| 亚洲h动漫在线| 麻豆精品视频在线观看视频| 美女在线观看视频一区二区| 久草在线在线精品观看| 国产精华液一区二区三区| 成人一区二区在线观看| 一本色道久久综合亚洲91| 色999日韩国产欧美一区二区| 色欧美片视频在线观看在线视频| 欧美午夜在线一二页| 日韩区在线观看| 国产女主播在线一区二区| 国产精品美女视频| 亚洲电影在线播放| 开心九九激情九九欧美日韩精美视频电影| 国产在线视频一区二区| av电影天堂一区二区在线| 91国产成人在线| 久久综合九色综合97_久久久| 国产精品乱人伦| 亚洲va韩国va欧美va| 国产剧情一区二区| 欧美性受极品xxxx喷水| 精品欧美黑人一区二区三区| 国产精品无码永久免费888| 亚洲一区二区在线免费观看视频| 日本怡春院一区二区| 99热精品一区二区| 欧美一区二区三区免费观看视频 | 97精品久久久久中文字幕| 在线成人小视频| 成人欧美一区二区三区白人| 午夜电影一区二区| 不卡一区二区中文字幕| 日韩欧美一级在线播放| 亚洲美女免费视频| 盗摄精品av一区二区三区| 欧美电影免费观看完整版| 亚洲另类在线制服丝袜| 国产精品自拍一区| 欧美精品久久天天躁|