Hi
I perform an async query but the entity manager throws an exception because the thread id's don't match. By setting the AuthorizedThreadId to null the exceptions stop. I'm just wondering should AuthorizedThreadId be set to null in these cases or is something else going on?
EntityManager entityManager = new EntityManager(); entityManager.AuthorizedThreadId = null;
var userQuery = entityManager.GetQuery<User>().Where(u => u.Username.ToLower() == valuetoverify.ToString());
userQuery.ExecuteAsync((u) => { var results = u.Results; });
|
Edited by tersiusk - 03-Nov-2010 at 7:19am