This file contains 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
# Load the XML file | |
[xml]$xml = Get-Content 'en-US.xml' | |
# Initialize the output object | |
$output = @{} | |
# Iterate over each 'area' node | |
foreach ($area in $xml.language.ChildNodes) { | |
# Ignore 'language' and 'creator' nodes | |
if ($area.Name -eq 'language' -or $area.Name -eq 'creator') { |
This file contains 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 sealed class ProductLicense | |
{ | |
private readonly IHostingEnvironment _hostingEnvironment; | |
private readonly IHttpContextAccessor _contextAccessor; | |
private readonly ILogger<ProductLicense> _logger; | |
public ProductLicense(IHostingEnvironment hostingEnvironment, IHttpContextAccessor contextAccessor, ILogger<ProductLicense> logger) | |
{ | |
_hostingEnvironment = hostingEnvironment; | |
_contextAccessor = contextAccessor; |
This file contains 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.Configuration; | |
using CMSImportLibrary.Helpers; | |
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
namespace UpdateUmbracoRelations | |
{ | |
public class PublishedEventHandler : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |
This file contains 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
@foreach (var route in RouteTable.Routes.OfType<Route>()) | |
{ | |
var r = (Route)route; | |
<div>@r.Url</div> | |
} |
This file contains 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
[RuntimeLevel(MinLevel = RuntimeLevel.Run)] | |
public class SEOCheckerComposer : IUserComposer | |
{ | |
public void Compose(Composition composition) | |
{ | |
//Make sure app exists | |
composition.WithCollectionBuilder<SectionCollectionBuilder>() | |
.Append<SEOCheckerApplication>(); | |
} |