Use 'invocation.Method' as variable for CacheResultAdvice Key expression resolution [SPRNET-959].
This commit is contained in:
@@ -82,6 +82,7 @@ namespace Spring.Aspects.Cache
|
||||
Assert.AreEqual(0, cache.Count);
|
||||
}
|
||||
|
||||
#if NET_2_0
|
||||
[Test(Description = "http://jira.springframework.org/browse/SPRNET-959")]
|
||||
public void UseMethodInfoForKeyGeneration()
|
||||
{
|
||||
@@ -102,6 +103,7 @@ namespace Spring.Aspects.Cache
|
||||
// but it returns the NullValue marker created by the CacheResultAttribute
|
||||
Assert.IsNotNull(cache.Get("String_1"));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#region Inner Class : CacheParameterTarget
|
||||
@@ -155,6 +157,7 @@ namespace Spring.Aspects.Cache
|
||||
}
|
||||
}
|
||||
|
||||
#if NET_2_0
|
||||
public interface IGenericDao<T, IdT>
|
||||
{
|
||||
T Load(IdT id);
|
||||
@@ -168,6 +171,7 @@ namespace Spring.Aspects.Cache
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user