| 12345678910111213141516171819202122232425262728293031323334 |
- using Muchinfo.MTPClient.Infrastructure.Enums;
- using System;
- using System.Collections.Generic;
- namespace Muchinfo.MTPClient.Infrastructure.Cache
- {
- public class CacheObject : IDisposable
- {
- public DateTime CacheTime { get; set; }
- public CacheType CacheType
- {
- get;
- set;
- }
- public List<object> CacheList { get; set; }
- public CacheObject(CacheType type)
- {
- this.CacheType = type;
- }
- public void Dispose()
- {
- this.CacheTime = DateTime.MinValue;
- if (this.CacheList != null)
- {
- this.CacheList.Clear();
- this.CacheList = null;
- }
- }
- }
- }
|