In asp.net web api identity:
In ApplicationOAuthProvider.cs, There is a method:
var userManager = context.OwinContext.GetUserManager<ApplicationUserManager>();
This one method itself takes 4 seconds but the underlying query takes only 170 milliseconds.
I am not able to get what's happening. Can anyone help how I can optimize this method.
Thanks in advance