private async Task SendJsCallback(HttpContext context, LoginProfile profile) { //Render a page context.Response.ContentType = "text/html"; await context.Response.WriteAsync( JsCallbackHelper.GetCallbackPage() .Replace("%PROFILE%", $"\"{profile.Serialized}\"") .Replace("%CALLBACK%", Callback) .Replace("%DESKTOP%", (Mode == LoginMode.Redirect).ToString().ToLowerInvariant()) ); }
private void SendJsCallback(HttpContext context, LoginProfile profile) { //Render a page context.Response.ContentType = "text/html"; context.Response.Write(JsCallbackHelper.GetCallbackPage().Replace("%PROFILE%", profile.ToJson()).Replace("%CALLBACK%", Callback)); }