c# - ASP.NET MVC async await deadlock need ConfigureAwait(false)? -


will cause deadlock? have read adding .configureawait(false) needed if calling class uses ".result", apply here controllers... appreciated. have bunch of type of "stuff" going on , deadlocks seem happening. server shows 4 threads in w3wp dump , lot of requests "waiting", causes freeze no connections can made, unhangs , resumes. rinse , repeat. cant figure out.

this mvc controller:

public class dashboardcontroller {     private readonly ivendorresource _vendorresource;      public dashboardcontroller(ivendorresource vendorresource)     {         _vendorresource = vendorresource;                }      // get: dashboard     public async task<actionresult> index()     {         var vendor = await _vendorresource.get(1);          vendor.todashboardviewmodel();         vendor.emails = await _vendorresource.getvendoremails(1);          var model = vendor.todashboardviewmodel();         model.pagetitle = "dashboard";          var vendormetrics = await _vendorresource.getvendormetrics(1);         model.vendormetrics = vendormetrics.tovewmodel();          return view("~/views/dashboard/index.cshtml", model);     } } 


Comments