public LogoutActionResult(IViewService viewSvc, IDictionary<string, object> env, LogoutViewModel model) : base(async () => await viewSvc.Logout(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> Logout(IDictionary<string, object> env, LogoutViewModel model) { return Render(model, "logout"); }
public LogoutActionResult(IViewService viewSvc, IDictionary <string, object> env, LogoutViewModel model) : base(async() => await viewSvc.Logout(env, model)) { if (viewSvc == null) { throw new ArgumentNullException("viewSvc"); } if (env == null) { throw new ArgumentNullException("env"); } if (model == null) { throw new ArgumentNullException("model"); } }
private async Task<IHttpActionResult> RenderLogoutPromptPage() { var env = Request.GetOwinEnvironment(); var logoutModel = new LogoutViewModel { SiteName = _options.SiteName, SiteUrl = env.GetIdentityServerBaseUrl(), CurrentUser = await GetNameFromPrimaryAuthenticationType(), LogoutUrl = Url.Route(Constants.RouteNames.Logout, null), }; return new LogoutActionResult(_viewService, env, logoutModel); }