Ivan
Ivan
Multiple DbContexts select query can't work concurrently. Please see the code below. BTW, if I use async query, "System.ObjectDisposedException : Cannot access a disposed object." will occur. ` public async...
zooDbContext.Employees .FirstOrDefault(e => e.FirstName == "xx") will retrieve all records from employees collection in mongodb. Reproduce step: 1. Open mongo shell and use the command "db.setProfilingLevel(2)" to open the query...
When using razorEngineService.RunCompile on linux, I encounter a error "The version of Windows PDB writer is older than required: 'diasymreader.dll'". After investigating, I solve it by removing the check of...
##### 问题描述 Cache.BeginCacheLockAsync 没有工作 ##### 重现问题步骤(如果可以) 为了将accesstoken的当前所剩过期时间能返回给调用方,重新封装了下AccessTokenContainer如下: `public class AccessTokenContainerExt: AccessTokenContainer{ public static async Task GetAccessTokenInfo(string appId, bool getNewToken = false) { await ValidateAppRegistered(appId).ConfigureAwait(false); var accessTokenBag = await TryGetItemAsync(appId).ConfigureAwait(false); using...
为了将accesstoken的当前所剩过期时间能返回给调用方,重新封装了下AccessTokenContainer如下: `public class AccessTokenContainerExt: AccessTokenContainer{ public static async Task GetAccessTokenInfo(string appId, bool getNewToken = false) { await ValidateAppRegistered(appId).ConfigureAwait(false); var accessTokenBag = await TryGetItemAsync(appId).ConfigureAwait(false); using (await Cache.BeginCacheLockAsync(LockResourceName, appId).ConfigureAwait(false))//同步锁 { if (getNewToken...