Mercurial > pub > bltoolkit
view Tools/DocGen/Content/Doc/Aspects/ClearCacheAspect.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
author | cin |
---|---|
date | Fri, 22 Aug 2014 17:34:46 +0400 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
[BLToolkitGenerated] public sealed class TestClass : ClearCacheAspect.TestClass { private static MethodInfo _methodInfo1; private static MethodInfo _methodInfo2; private static Type _type3; private static Type _type4; public override int CachedMethod(int p1, int p2) { // Method implementation. } public override void ClearCache() { try { // Here should be main method implementation. // It is empty as this method does nothing. } finally { if (_methodInfo1 == null) { _methodInfo1 = ClearCacheAspect.GetMethodInfo(this, null, "CachedMethod", null); } CacheAspect.ClearCache(_methodInfo1); } } public override void ClearCache2() { try { } finally { if (_methodInfo2 == null) { _methodInfo2 = ClearCacheAspect.GetMethodInfo( this, null, "CachedMethod", new Type[] { typeof(int), typeof(int) }); } CacheAspect.ClearCache(_methodInfo2); } } public override void ClearAll() { try { } finally { if (_type3 == null) { _type3 = ClearCacheAspect.GetType(this, typeof(TestClass)); } CacheAspect.ClearCache(_type3); } } public override void ClearAll2() { try { } finally { if (_type4 == null) { _type4 = ClearCacheAspect.GetType(this, null); } CacheAspect.ClearCache(_type4); } } }