Mercurial > pub > bltoolkit
comparison Source/Aspects/CacheAspectItem.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 using System; | |
2 | |
3 namespace BLToolkit.Aspects | |
4 { | |
5 public class CacheAspectItem | |
6 { | |
7 private DateTime _maxCacheTime; | |
8 public virtual DateTime MaxCacheTime | |
9 { | |
10 get { return _maxCacheTime; } | |
11 set { _maxCacheTime = value; } | |
12 } | |
13 | |
14 private object _returnValue; | |
15 public object ReturnValue | |
16 { | |
17 get { return _returnValue; } | |
18 set { _returnValue = value; } | |
19 } | |
20 | |
21 private object[] _refValues; | |
22 public object[] RefValues | |
23 { | |
24 get { return _refValues; } | |
25 set { _refValues = value; } | |
26 } | |
27 | |
28 public virtual bool IsExpired | |
29 { | |
30 get { return _maxCacheTime <= DateTime.Now; } | |
31 } | |
32 } | |
33 } |