A .net framework library contains the following method :
public static void SetSqlLogOn(bool TrueOnFalseOff)
{
HttpContext.Current.Session["LM_SQLLOG"] = TrueOnFalseOff;
}
We are now converting it to net core. We tried Microsoft.AspNetCore.Http which doesn't work the way the above method does.What is the way to write this method in net core?