⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspectproperty.cs

📁 应用AOP
💻 CS
字号:
//
// Write by Peopleyl 2007-04-13
//
using System;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Messaging;

namespace Aspect.AopBase
{
	public class AspectProperty : IContextProperty,IContributeServerContextSink
	{	
		
		#region AspectProperty Members

		private string aopPropertyName;

		public AspectProperty(string aopPropertyName)
		{
			this.aopPropertyName = aopPropertyName;
		}

		#endregion 

		#region IContextProperty Members

		public string Name
		{
			get{return aopPropertyName;}
		}

		public virtual void Freeze(Context context)
		{
			return;
		}

		public virtual bool IsNewContextOK(Context context)
		{
			return true;
		}

		#endregion
		
		#region IContributeServerContextSink Members

		public virtual IMessageSink GetServerContextSink(IMessageSink nextSink)
		{
			return null;
		}

		#endregion
		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -