public static async Task <IHttpResponse> GetAsync( [QueryParameter(Name = AuthenticationPropertyName)] IRef <Authentication> authenticationRef, [Accepts(Media = "text/html")] MediaTypeWithQualityHeaderValue accept, ContentTypeResponse <Authentication> onFound, HtmlResponse onHtmlWanted, NotFoundResponse onNotFound) { if (!accept.IsDefaultOrNull()) { return(onHtmlWanted(Properties.Resources.loginHtml)); } return(await authenticationRef.StorageGetAsync( (authentication) => { return onFound(authentication); }, () => onNotFound())); }