public LoggedOutActionResult(IViewService viewSvc, IDictionary<string, object> env, LoggedOutViewModel model) : base(async () => await viewSvc.LoggedOut(env, model)) { if (viewSvc == null) throw new ArgumentNullException("viewSvc"); if (env == null) throw new ArgumentNullException("env"); if (model == null) throw new ArgumentNullException("model"); }
public LoggedOutActionResult(IViewService viewSvc, IDictionary <string, object> env, LoggedOutViewModel model) : base(async() => await viewSvc.LoggedOut(env, model)) { if (viewSvc == null) { throw new ArgumentNullException("viewSvc"); } if (env == null) { throw new ArgumentNullException("env"); } if (model == null) { throw new ArgumentNullException("model"); } }
public virtual Task<System.IO.Stream> LoggedOut(IDictionary<string, object> env, LoggedOutViewModel model) { return Render(model, "loggedOut"); }
private IHttpActionResult RenderLoggedOutPage() { var env = Request.GetOwinEnvironment(); var baseUrl = env.GetIdentityServerBaseUrl(); var urls = new List<string>(); foreach (var url in _options.ProtocolLogoutUrls) { var tmp = url; if (tmp.StartsWith("/")) tmp = tmp.Substring(1); urls.Add(baseUrl + tmp); } Logger.Info("rendering logged out page"); var loggedOutModel = new LoggedOutViewModel { SiteName = _options.SiteName, SiteUrl = baseUrl, IFrameUrls = urls, }; return new LoggedOutActionResult(_viewService, env, loggedOutModel); }