0
|
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 }
|