Kentico 12 MVC application for <...>
12.0.68
namespace DancingGoat; | |
public class Address | |
{ | |
public const string LIST_FIELD_TYPE = "addresslist"; | |
public string Street { get; set; } = ""; | |
public string City { get; set; } = ""; | |
public string StateProvince { get; set; } = ""; | |
public string PostalCode { get; set; } = ""; |
// See https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-usage | |
await Host | |
.CreateDefaultBuilder(args) | |
.ConfigureServices((context, services) => | |
services | |
.AddLogging() | |
.AddQuartz(quartz => | |
{ | |
quartz.SchedulerId = "Quartz-App"; | |
quartz.SchedulerName = "Quartz-App"; |
@using Microsoft.AspNetCore.Mvc.Localization | |
@using Kentico.Activities.Web.Mvc | |
@using Kentico.Membership.Web.Mvc | |
@using Kentico.OnlineMarketing.Web.Mvc | |
@using DancingGoat.Helpers | |
@using DancingGoat.Widgets | |
@inject IHtmlLocalizer<SharedResources> HtmlLocalizer |
/// <summary> | |
/// Default filter for associating Page Types to Page Templates | |
/// </summary> | |
public abstract class DefaultPageTemplateFilter : IPageTemplateFilter | |
{ | |
/// <summary> | |
/// If true, then the templates returned by <see cref="FilterBy(PageTemplateDefinition)"/> are excluded from the results of <see cref="Filter(IEnumerable{PageTemplateDefinition}, PageTemplateFilterContext)"/> | |
/// when the <see cref="PageTypeClassName"/> does not match the Page Type of the context. | |
/// Defaults to false. | |
/// </summary> |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using CMS; | |
using CMS.Helpers; | |
using CMS.MacroEngine; | |
using CMS.PortalEngine; | |
using CMS.SiteProvider; | |
using Sandbox.Infrastructure.Emails; |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<!-- Content staging BEGIN --> | |
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> | |
<!-- Content staging END --> | |
<!-- AjaxControlToolkit BEGIN --> | |
<section name="ajaxControlToolkit" type="AjaxControlToolkit.AjaxControlToolkitConfigSection, AjaxControlToolkit" requirePermission="false" /> | |
<!-- AjaxControlToolkit END --> | |
</configSections> |
{ | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"node_modules": true, | |
"obj": true, | |
"bin": true, |
public static class PageTypeRouteAttributeCacheHelper | |
{ | |
public static readonly Dictionary<string, ControllerActionPair> ClassNameLookup; | |
static PageTypeRouteAttributeCacheHelper() | |
{ | |
var controllerTypes = typeof(PageTypeRouteAttributeCacheHelper) | |
.Assembly | |
.GetTypes() | |
.Where(t => |
/// <summary> | |
/// From https://github.com/garysharp/Disco/commit/1dfa3f4f15fe4fc093e90e4cd490dd06cc30cf07 | |
/// </summary> | |
public class JsonDotNetValueProviderFactory : ValueProviderFactory | |
{ | |
private readonly JsonSerializerSettings serializerSettings; | |
public JsonDotNetValueProviderFactory(JsonSerializerSettings serializerSettings) | |
{ | |
Guard.Against.Null(serializerSettings, nameof(serializerSettings)); |