feat: 准备实现 IChangeToken 类

This commit is contained in:
Argo-Tianyi 2022-01-14 21:34:52 +08:00
parent eb67bbf26e
commit 61ac109d2e
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
using Microsoft.Extensions.Primitives;
namespace BootstrapAdmin.Caching;
/// <summary>
/// 缓存键值 IChangeToken 实现类
/// </summary>
public class CacheKeyChangeToken : IChangeToken
{
/// <summary>
///
/// </summary>
public bool HasChanged { get; }
/// <summary>
///
/// </summary>
public bool ActiveChangeCallbacks { get; }
/// <summary>
///
/// </summary>
/// <param name="callback"></param>
/// <param name="state"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public IDisposable RegisterChangeCallback(Action<object> callback, object state)
{
throw new NotImplementedException();
}
}