I need to set a breakpoint in the ConfigureAuth to debug an issue we are having.
The following article claims you can set a breakpoint but this article is C# and I need this to work in VB.NET
https://coding.abel.nu/2014/06/understanding-the-owin-external-authentication-pipeline/
I converted this:
app.Use(async (context, next) =>
{
await next.Invoke();
});
To this:
app.Use(Async Function(context, [next])
Await [next].Invoke()
End Function)
but I get an error the following error:
Parameter count mismatch.
Here are a couple of problems.
- I assumed that "context" was "Microsoft.Owin.OwinContext" but that is an invalid assumption. "context" in the VB project I think it is "Microsoft.Owin.Security.Cookies.CookieAuthenticationMiddleware"
- I don't know what the type is for "next"