The solution, as provided by @Jand42 on the gitter chat is:

1
2
3
4
let httpContext = ctx.HttpContext() // needs open WebSharper.AspNetCore
                                    // short for unbox<HttpContext> (ctx.Environment.["WebSharper.AspNetCore.HttpContext"])
let signInManager = httpContext.RequestServices.GetService<SignInManager<ApplicationUser>>()
let userManager = httpContext.RequestServices.GetService<UserManager<ApplicationUser>>()
By on 3/20/2021 3:47 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper