static Resources() { // Generally embedded resources are marked as anonymous, this forces the following to require authentication AuthenticationOptions.ResourceRequiresAuthentication("GSF.Web.Shared.Views.UserInfo.cshtml", true); }
// Static Constructor static CsvDownloadHandler() { // Generally embedded resources are marked as anonymous, this forces CSV download handler to require authentication AuthenticationOptions.ResourceRequiresAuthentication($"GSF.Web.Model.Handlers.{nameof(CsvDownloadHandler)}.ashx", true); }