2008年9月24日

上下文栏截处理(ContextAttribute)

摘要: .Net中上下文处理属性,保证程序在运行时进行上下文处理后再执行所调用的方法。以上是封装好的Context基类,直接继承下面的类即可实现方法拦截功能。代码权限可以使用Windows 操作系统账户和自定义验证GenericPrincipal/GenericIdentity。当登陆成功后可以用AppDomain.CurrentDomain.SetThreadPrincipal来设置当前线程权限。然后就... 阅读全文

posted @ 2008-09-24 20:10 Kaven.lau 阅读(488) 评论(0) 推荐(0) 编辑

导航