This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Umbraco.Cms.Core.Models.PublishedContent; | |
| using Umbraco.Cms.Core; | |
| using Umbraco.Cms.Core.PropertyEditors.ValueConverters; | |
| using Umbraco.Cms.Core.PublishedCache; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.DependencyInjection; | |
| using Umbraco.Cms.Core.Services; | |
| public class IntFriendlyMediaPickerValueConverter : MediaPickerValueConverter | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Page Language="vb" %> | |
| <html> | |
| <head> | |
| <title>Showing HTTP Headers via the Headers Collection in ASP.NET</title> | |
| </head> | |
| <body> | |
| <% | |
| Dim AllHttp As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .\wacs.exe --installation script --script "Scripts\ImportWMSVC.ps1" --scriptparameters "'{CertThumbprint}'" --certificatestore My |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IValidateYubiKeyOTPService | |
| { | |
| Task<bool> ValidateYubiKey(string otp); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.AspNetCore.Http.Extensions; | |
| public class WebPMiddleware | |
| { | |
| private readonly RequestDelegate _next; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev) | |
| { | |
| var policy = new HeaderPolicyCollection() | |
| .AddFrameOptionsDeny() | |
| .AddXssProtectionBlock() | |
| .AddContentTypeOptionsNoSniff() | |
| .AddReferrerPolicyStrictOriginWhenCrossOrigin() | |
| .RemoveServerHeader() | |
| .AddCrossOriginOpenerPolicy(builder => | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface ISiteMapXmlService | |
| { | |
| public string GenerateXml(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "outputFileName": "wwwroot/bundles/site.min.css", | |
| "inputFiles": [ | |
| "wwwroot/lib/bootstrap/dist/css/bootstrap.css", | |
| "wwwroot/css/site.css" | |
| ] | |
| }, | |
| { | |
| "outputFileName": "wwwroot/bundles/site.min.js", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "outputFileName": "wwwroot/css/site.min.css", | |
| "inputFiles": [ | |
| "wwwroot/lib/bootstrap/dist/css/bootstrap.css", | |
| "wwwroot/css/site.css" | |
| ] | |
| }, | |
| { | |
| "outputFileName": "wwwroot/js/site.min.js", |