New Posts New Posts RSS Feed: Async Deadlock (ASP/WPF)
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Async Deadlock (ASP/WPF)

 Post Reply Post Reply
Author
Engo View Drop Down
Newbie
Newbie


Joined: 20-Sep-2011
Posts: 6
Post Options Post Options   Quote Engo Quote  Post ReplyReply Direct Link To This Post Topic: Async Deadlock (ASP/WPF)
    Posted: 21-Jan-2014 at 12:37am
I am having the problem that the following code is producing a deadlock:

public async Task Test()
{
            var man = new EntityManager();
            var result = await (man.GetQuery<OrderEntity>().ExecuteAsync()).ConfigureAwait(false);
            
}

// calling this method by using:
Test().Wait();

When I test this method by using Task.Delay(1000) I get the expected deadlock and by using Task.Delay(1000).ConfigureAwait(false) it works fine. It seems that ConfigureAwait does not work as expected when executing queries.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down