コード例 #1
0
 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);
 }
コード例 #2
0
 // 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);
 }