public CredentialProvider() { _renewalPeriod = TimeSpan.FromHours(2); _memoryCache = new Runtime.Caching.MemoryCache("Zongsoft.Security.CredentialProvider.MemoryCache"); //挂载内存缓存容器的事件 _memoryCache.Changed += MemoryCache_Changed; }
public CredentialProvider(Zongsoft.Services.IServiceProvider serviceProvider) : base(serviceProvider) { _renewalPeriod = TimeSpan.FromHours(2); _memoryCache = new MemoryCache("Flagwind.Security.CredentialProvider.MemoryCache"); //挂载内存缓存容器的事件 _memoryCache.Changed += MemoryCache_Changed; }