This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//lambda async expression in func | |
//the previows signature was :T Get(string cacheKeyName, int cacheTimeOutSeconds, Func<T> func) | |
string cacheName = "all-tenants-cache-name"; | |
int cacheTimeOutSeconds = 30; | |
List<Tenant> tenants = | |
await new TCacheProvider<List<Tenant>>().Get( | |
cacheName, cacheTimeOutSeconds, | |
async () =>{ | |
//here some asynchronous methods |