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

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

?? loggingevent.cs

?? 詳細講述了數據庫編程
?? CS
?? 第 1 頁 / 共 4 頁
字號:
							// As a last resort use the hash code of the Thread object
							m_data.ThreadName = System.Threading.Thread.CurrentThread.GetHashCode().ToString(System.Globalization.CultureInfo.InvariantCulture);
						}
					}
#endif
				}
				return m_data.ThreadName;
			}
		}

		/// <summary>
		/// Gets the name of the current user.
		/// </summary>
		/// <value>
		/// The name of the current user, or <c>NOT AVAILABLE</c> when the 
		/// underlying runtime has no support for retrieving the name of the 
		/// current user.
		/// </value>
		/// <remarks>
		/// <para>
		/// Calls <c>WindowsIdentity.GetCurrent().Name</c> to get the name of
		/// the current windows user.
		/// </para>
		/// <para>
		/// To improve performance, we could cache the string representation of 
		/// the name, and reuse that as long as the identity stayed constant.  
		/// Once the identity changed, we would need to re-assign and re-render 
		/// the string.
		/// </para>
		/// <para>
		/// However, the <c>WindowsIdentity.GetCurrent()</c> call seems to 
		/// return different objects every time, so the current implementation 
		/// doesn't do this type of caching.
		/// </para>
		/// <para>
		/// Timing for these operations:
		/// </para>
		/// <list type="table">
		///   <listheader>
		///     <term>Method</term>
		///     <description>Results</description>
		///   </listheader>
		///   <item>
		///	    <term><c>WindowsIdentity.GetCurrent()</c></term>
		///	    <description>10000 loops, 00:00:00.2031250 seconds</description>
		///   </item>
		///   <item>
		///	    <term><c>WindowsIdentity.GetCurrent().Name</c></term>
		///	    <description>10000 loops, 00:00:08.0468750 seconds</description>
		///   </item>
		/// </list>
		/// <para>
		/// This means we could speed things up almost 40 times by caching the 
		/// value of the <c>WindowsIdentity.GetCurrent().Name</c> property, since 
		/// this takes (8.04-0.20) = 7.84375 seconds.
		/// </para>
		/// </remarks>
		public string UserName
		{
			get
			{
				if (m_data.UserName == null  && this.m_cacheUpdatable) 
				{
#if (NETCF || SSCLI)
					// On compact framework there's no notion of current Windows user
					m_data.UserName = SystemInfo.NotAvailableText;
#else
					try
					{
						WindowsIdentity windowsIdentity = WindowsIdentity.GetCurrent();
						if (windowsIdentity != null && windowsIdentity.Name != null)
						{
							m_data.UserName = windowsIdentity.Name;
						}
						else
						{
							m_data.UserName = "";
						}
					}
					catch(System.Security.SecurityException)
					{
						// This security exception will occur if the caller does not have 
						// some undefined set of SecurityPermission flags.
						LogLog.Debug("LoggingEvent: Security exception while trying to get current windows identity. Error Ignored. Empty user name.");

						m_data.UserName = "";
					}
#endif
				}
				return m_data.UserName;
			}
		}

		/// <summary>
		/// Gets the identity of the current thread principal.
		/// </summary>
		/// <value>
		/// The string name of the identity of the current thread principal.
		/// </value>
		/// <remarks>
		/// <para>
		/// Calls <c>System.Threading.Thread.CurrentPrincipal.Identity.Name</c> to get
		/// the name of the current thread principal.
		/// </para>
		/// </remarks>
		public string Identity
		{
			get
			{
				if (m_data.Identity == null  && this.m_cacheUpdatable)
				{
#if (NETCF || SSCLI)
					// On compact framework there's no notion of current thread principals
					m_data.Identity = SystemInfo.NotAvailableText;
#else
					try
					{
						if (System.Threading.Thread.CurrentPrincipal != null && 
							System.Threading.Thread.CurrentPrincipal.Identity != null &&
							System.Threading.Thread.CurrentPrincipal.Identity.Name != null)
						{
							m_data.Identity = System.Threading.Thread.CurrentPrincipal.Identity.Name;
						}
						else
						{
							m_data.Identity = "";
						}
					}
					catch(System.Security.SecurityException)
					{
						// This security exception will occur if the caller does not have 
						// some undefined set of SecurityPermission flags.
						LogLog.Debug("LoggingEvent: Security exception while trying to get current thread principal. Error Ignored. Empty identity name.");

						m_data.Identity = "";
					}
#endif
				}
				return m_data.Identity;
			}
		}

		/// <summary>
		/// Gets the AppDomain friendly name.
		/// </summary>
		/// <value>
		/// The AppDomain friendly name.
		/// </value>
		/// <remarks>
		/// <para>
		/// Gets the AppDomain friendly name.
		/// </para>
		/// </remarks>
		public string Domain
		{
			get 
			{ 
				if (m_data.Domain == null  && this.m_cacheUpdatable)
				{
					m_data.Domain = SystemInfo.ApplicationFriendlyName;
				}
				return m_data.Domain; 
			}
		}

		/// <summary>
		/// Additional event specific properties.
		/// </summary>
		/// <value>
		/// Additional event specific properties.
		/// </value>
		/// <remarks>
		/// <para>
		/// A logger or an appender may attach additional
		/// properties to specific events. These properties
		/// have a string key and an object value.
		/// </para>
		/// <para>
		/// This property is for events that have been added directly to
		/// this event. The aggregate properties (which include these
		/// event properties) can be retrieved using <see cref="LookupProperty"/>
		/// and <see cref="GetProperties"/>.
		/// </para>
		/// <para>
		/// Once the properties have been fixed <see cref="Fix"/> this property
		/// returns the combined cached properties. This ensures that updates to
		/// this property are always reflected in the underlying storage. When
		/// returning the combined properties there may be more keys in the
		/// Dictionary than expected.
		/// </para>
		/// </remarks>
		public PropertiesDictionary Properties
		{
			get 
			{ 
				// If we have cached properties then return that otherwise changes will be lost
				if (m_data.Properties != null)
				{
					return m_data.Properties;
				}

				if (m_eventProperties == null)
				{
					m_eventProperties = new PropertiesDictionary();
				}
				return m_eventProperties; 
			}
		}

		/// <summary>
		/// The fixed fields in this event
		/// </summary>
		/// <value>
		/// The set of fields that are fixed in this event
		/// </value>
		/// <remarks>
		/// <para>
		/// Fields will not be fixed if they have previously been fixed.
		/// It is not possible to 'unfix' a field.
		/// </para>
		/// </remarks>
		public FixFlags Fix
		{
			get { return m_fixFlags; }
			set { this.FixVolatileData(value); }
		}

		#endregion Public Instance Properties

		#region Implementation of ISerializable

#if !NETCF

		/// <summary>
		/// Serializes this object into the <see cref="SerializationInfo" /> provided.
		/// </summary>
		/// <param name="info">The <see cref="SerializationInfo" /> to populate with data.</param>
		/// <param name="context">The destination for this serialization.</param>
		/// <remarks>
		/// <para>
		/// The data in this event must be fixed before it can be serialized.
		/// </para>
		/// <para>
		/// The <see cref="FixVolatileData()"/> method must be called during the
		/// <see cref="log4net.Appender.IAppender.DoAppend"/> method call if this event 
		/// is to be used outside that method.
		/// </para>
		/// </remarks>
		[System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, SerializationFormatter=true)]
		public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
		{
			// The caller must call FixVolatileData before this object
			// can be serialized.

			info.AddValue("LoggerName", m_data.LoggerName);
			info.AddValue("Level", m_data.Level);
			info.AddValue("Message", m_data.Message);
			info.AddValue("ThreadName", m_data.ThreadName);
			info.AddValue("TimeStamp", m_data.TimeStamp);
			info.AddValue("LocationInfo", m_data.LocationInfo);
			info.AddValue("UserName", m_data.UserName);
			info.AddValue("ExceptionString", m_data.ExceptionString);
			info.AddValue("Properties", m_data.Properties);
			info.AddValue("Domain", m_data.Domain);
			info.AddValue("Identity", m_data.Identity);
		}

#endif

		#endregion Implementation of ISerializable

		#region Public Instance Methods

		/// <summary>
		/// Gets the portable data for this <see cref="LoggingEvent" />.
		/// </summary>
		/// <returns>The <see cref="LoggingEventData"/> for this event.</returns>
		/// <remarks>
		/// <para>
		/// A new <see cref="LoggingEvent"/> can be constructed using a
		/// <see cref="LoggingEventData"/> instance.
		/// </para>
		/// <para>
		/// Does a <see cref="FixFlags.Partial"/> fix of the data
		/// in the logging event before returning the event data.
		/// </para>
		/// </remarks>
		public LoggingEventData GetLoggingEventData()
		{
			return GetLoggingEventData(FixFlags.Partial);
		}

		/// <summary>
		/// Gets the portable data for this <see cref="LoggingEvent" />.
		/// </summary>
		/// <param name="fixFlags">The set of data to ensure is fixed in the LoggingEventData</param>
		/// <returns>The <see cref="LoggingEventData"/> for this event.</returns>
		/// <remarks>
		/// <para>
		/// A new <see cref="LoggingEvent"/> can be constructed using a
		/// <see cref="LoggingEventData"/> instance.
		/// </para>
		/// </remarks>
		public LoggingEventData GetLoggingEventData(FixFlags fixFlags)
		{
			Fix = fixFlags;
			return m_data;
		}

		/// <summary>
		/// Returns this event's exception's rendered using the 
		/// <see cref="ILoggerRepository.RendererMap" />.
		/// </summary>
		/// <returns>
		/// This event's exception's rendered using the <see cref="ILoggerRepository.RendererMap" />.
		/// </returns>
		/// <remarks>
		/// <para>
		/// <b>Obsolete. Use <see cref="GetExceptionString"/> instead.</b>
		/// </para>
		/// </remarks>
		[Obsolete("Use GetExceptionString instead")]
		public string GetExceptionStrRep() 
		{
			return GetExceptionString();
		}

		/// <summary>
		/// Returns this event's exception's rendered using the 
		/// <see cref="ILoggerRepository.RendererMap" />.
		/// </summary>
		/// <returns>
		/// This event's exception's rendered using the <see cref="ILoggerRepository.RendererMap" />.
		/// </returns>
		/// <remarks>
		/// <para>
		/// Returns this event's exception's rendered using the 
		/// <see cref="ILoggerRepository.RendererMap" />.
		/// </para>
		/// </remarks>
		public string GetExceptionString() 
		{
			if (m_data.ExceptionString == null  && this.m_cacheUpdatable)
			{
				if (m_thrownException != null)
				{
					if (m_repository != null)
					{
						// Render exception using the repositories renderer map
						m_data.ExceptionString = m_repository.RendererMap.FindAndRender(m_thrownException);
					}
					else
					{
						// Very last resort
						m_data.ExceptionString = m_thrownException.ToString();
					}
				}
				else
				{
					m_data.ExceptionString = "";
				}
			}
			return m_data.ExceptionString;
		}

		/// <summary>
		/// Fix instance fields that hold volatile data.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Some of the values in instances of <see cref="LoggingEvent"/>
		/// are considered volatile, that is the values are correct at the
		/// time the event is delivered to appenders, but will not be consistent
		/// at any time afterwards. If an event is to be stored and then processed
		/// at a later time these volatile values must be fixed by calling
		/// <see cref="FixVolatileData()"/>. There is a performance penalty
		/// incurred by calling <see cref="FixVolatileData()"/> but it
		/// is essential to maintaining data consistency.
		/// </para>
		/// <para>
		/// Calling <see cref="FixVolatileData()"/> is equivalent to
		/// calling <see cref="FixVolatileData(bool)"/> passing the parameter

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品婷婷国产综合久久| 日韩主播视频在线| 成人h精品动漫一区二区三区| 精品国产91洋老外米糕| 国产精品一区三区| 国产精品女上位| 色综合久久66| 日韩国产一区二| 精品国产乱子伦一区| 国产成人免费视频网站| 亚洲少妇最新在线视频| 欧美无人高清视频在线观看| 免费观看在线综合| 亚洲国产精品av| 欧美亚洲动漫精品| 激情五月激情综合网| 亚洲国产高清在线观看视频| 在线一区二区三区四区| 免费欧美日韩国产三级电影| 国产色产综合色产在线视频| 色综合色狠狠综合色| 日韩专区在线视频| 国产精品久久久一区麻豆最新章节| 在线视频欧美精品| 寂寞少妇一区二区三区| 18欧美亚洲精品| 欧美一区二区三区成人| 国产xxx精品视频大全| 亚洲国产精品一区二区尤物区| 欧美不卡一区二区三区四区| 91网址在线看| 狠狠色综合日日| 亚洲福利视频一区二区| 欧美极品美女视频| 91精品国产手机| 91亚洲精品久久久蜜桃网站| 久久综合综合久久综合| 亚洲精品中文字幕乱码三区| 精品国产乱码久久久久久闺蜜| 91麻豆精东视频| 国产综合久久久久影院| 亚洲成人激情社区| 日韩毛片一二三区| 久久久久久久国产精品影院| 欧美日韩精品二区第二页| 成人免费毛片app| 激情亚洲综合在线| 青青草91视频| 亚洲高清免费观看| 亚洲乱码日产精品bd| 欧美激情在线一区二区三区| 日韩精品一区二区三区四区 | 91成人免费在线| 久久成人免费日本黄色| 午夜av一区二区| 亚洲国产人成综合网站| 中文字幕一区二区三区乱码在线| 国产亚洲一区字幕| 欧美第一区第二区| 欧美一区二区女人| 91精品国产综合久久久蜜臀粉嫩| 一本色道久久加勒比精品| 成人高清av在线| 国产不卡视频在线播放| 国产丶欧美丶日本不卡视频| 久久精品国产**网站演员| 日韩成人伦理电影在线观看| 五月综合激情网| 午夜国产精品一区| 午夜免费久久看| 偷拍一区二区三区四区| 视频一区中文字幕| 美洲天堂一区二卡三卡四卡视频 | 精品毛片乱码1区2区3区 | 欧美影视一区二区三区| 色婷婷狠狠综合| 在线免费不卡电影| 精品视频一区二区三区免费| 欧美日韩国产成人在线免费| 欧美久久久久久久久中文字幕| 欧美亚洲免费在线一区| 欧美视频一二三区| 欧美日韩国产电影| 欧美一区在线视频| 精品播放一区二区| 久久免费看少妇高潮| 国产欧美日韩三区| 国产精品久久久久久久第一福利 | 欧美mv日韩mv国产网站app| 欧美电视剧在线看免费| 国产欧美日韩亚州综合| **性色生活片久久毛片| 亚洲日本电影在线| 亚洲国产综合人成综合网站| 天堂成人国产精品一区| 国产在线一区观看| 99精品视频中文字幕| 欧美在线观看视频在线| 91麻豆精品久久久久蜜臀| 精品国精品国产| 亚洲私人黄色宅男| 污片在线观看一区二区| 国产精品99久久久久久似苏梦涵| av高清不卡在线| 欧美日韩国产精选| 国产拍欧美日韩视频二区| 亚洲日本中文字幕区| 91丝袜国产在线播放| 韩国av一区二区三区四区| 国产999精品久久久久久| 91久久一区二区| 91精品欧美综合在线观看最新| 精品精品欲导航| 亚洲猫色日本管| 蜜臀va亚洲va欧美va天堂 | 成人深夜在线观看| 欧美午夜电影在线播放| 欧美精品一区二区高清在线观看| 国产精品大尺度| 日本美女视频一区二区| 91女厕偷拍女厕偷拍高清| 欧美一级xxx| 亚洲精品国产精华液| 精品无人码麻豆乱码1区2区 | 中文字幕在线免费不卡| 天涯成人国产亚洲精品一区av| 国产精品影视天天线| 色av成人天堂桃色av| 日韩你懂的电影在线观看| 国产精品电影院| 免费观看91视频大全| 一本大道久久a久久精品综合| 欧美白人最猛性xxxxx69交| 亚洲激情av在线| 国产成人免费在线观看不卡| 日韩一区二区三区四区| 亚洲综合视频在线| thepron国产精品| wwwwxxxxx欧美| 蜜臀久久久久久久| 欧亚一区二区三区| 亚洲情趣在线观看| 成人综合婷婷国产精品久久 | 欧美日韩日本视频| 亚洲图片欧美激情| 国产69精品一区二区亚洲孕妇| 91精品麻豆日日躁夜夜躁| 一区二区在线观看免费 | 国产精品亚洲一区二区三区妖精| 91精品在线观看入口| 夜色激情一区二区| 91亚洲男人天堂| 国产精品视频一区二区三区不卡| 日本女人一区二区三区| 欧美日韩高清一区| 亚洲线精品一区二区三区| 91片在线免费观看| 中文字幕一区二| 99re8在线精品视频免费播放| 久久精品视频在线免费观看| 国产一区三区三区| 精品精品欲导航| 国内精品免费在线观看| 欧美精品一区二区三区蜜桃| 麻豆国产精品视频| 日韩欧美自拍偷拍| 精品一区二区三区av| 久久久久久久久久久久久久久99| 国产在线精品免费av| 久久久久久电影| 成人av在线播放网址| 国产精品每日更新在线播放网址 | 国产ts人妖一区二区| 国产精品色一区二区三区| 成人爽a毛片一区二区免费| 亚洲欧洲色图综合| 色综合网色综合| 一个色综合网站| 欧美一区二区三区四区五区 | 久久99精品一区二区三区| 日韩免费高清av| 国产精品一区二区免费不卡| 欧美国产激情一区二区三区蜜月 | 午夜私人影院久久久久| 69p69国产精品| 精彩视频一区二区三区| 久久久高清一区二区三区| 成人免费高清视频在线观看| 亚洲人成在线播放网站岛国| 欧美日韩国产一级片| 免费人成精品欧美精品| 久久久不卡网国产精品一区| 成人av免费在线| 亚洲国产日韩a在线播放性色| 欧美一区二区三区成人| 福利视频网站一区二区三区| 伊人开心综合网| 精品少妇一区二区三区| 成人激情视频网站| 亚洲成在人线免费|