How do I do logging messages in startup.cs? I cannot inject the logger.
I want to use chache for custom login data
this is my cache call
var myCache = await _cacheManager.GetCache("MyCache") .GetAsync(AbpSession.UserId.ToString(), async () => await GetCacheFromSomewhere(AbpSession.UserId)) as NdCacheRecord;
private async Task<NdCacheRecord> GetCacheFromSomewhere(long? userId) { return new NdCacheRecord() }
async () => await GetCacheFromSomewhere(AbpSession.UserId)
gives syntax error: Delegate Func<string, Task<object>> does not take 0 arguments
What should this look like?