aspectproperty.cs

来自「应用AOP」· CS 代码 · 共 54 行

CS
54
字号
//
// 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 + =
减小字号Ctrl + -
显示快捷键?