示例#1
0
 public override Task InitializeAsync()
 {
     _cache = new Cache.DistributedCache((IDistributedCache)_services.GetService(typeof(IDistributedCache)));
     return(base.InitializeAsync());
 }
示例#2
0
 public override async Task InitializeAsync()
 {
     _cache = new Cache.DistributedCache((IDistributedCache)_services.GetService(typeof(IDistributedCache)));
     await base.InitializeAsync();
 }