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
/// <summary> | |
/// Serializer for Vulcan content | |
/// </summary> | |
// ReSharper disable once InconsistentNaming | |
public class CustomJsonSerializer : JsonNetSerializer | |
private readonly IEnumerable<IVulcanIndexingModifier> _vulcanModifiers; | |
private static readonly Type IgnoreType = typeof(VulcanIgnoreAttribute); |
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
import path = require('path'); | |
import os = require('os'); | |
import tl = require('vsts-task-lib/task'); | |
tl.setResourcePath(path.join(__dirname, 'task.json')); | |
(() => { | |
let variableDelimiter: string = tl.getInput('VariableDelimiter', false); | |
variableDelimiter = variableDelimiter === null ? ";" : variableDelimiter; | |
// contents is a multiline input containing glob patterns |
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.Collections.Generic; | |
using System.Linq; | |
using EPiServer.Core; | |
using EPiServer.Core.Html.StringParsing; | |
using EPiServer.Security; | |
using EPiServer.ServiceLocation; | |
using TcbInternetSolutions.Vulcan.Core; | |
using TcbInternetSolutions.Vulcan.Core.Extensions; | |
namespace WSOL.Web.Business.Vulcan |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using DotNetStarter.Abstractions; | |
using Microsoft.DotNet.PlatformAbstractions; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyModel; | |
// todo: Set namespace |
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; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
using System.Web.Mvc; | |
using System.Collections.Generic; | |
namespace AlloyCms11.Business.Initialization | |
{ | |
public class DefaultProvider : DataAnnotationsModelMetadataProvider { } |
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 LightInject; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System.Linq; | |
namespace _LightInjectTests | |
{ | |
public interface IFoo { } | |
public class FooOne : IFoo { } |
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 EPiServer.Framework; | |
using EPiServer.Framework.Localization; | |
using EPiServer.Framework.Localization.Internal; | |
using EPiServer.ServiceLocation; | |
using System; | |
using System.Globalization; | |
using System.Linq; | |
namespace WSOL.Web.Business | |
{ |
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 EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
using StructureMap; | |
using StructureMap.Pipeline; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace AlloyDemoKit.Business.Initialization |
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 EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using System.Web.Http; | |
namespace AlloyTen.Business.Initialization | |
{ | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] | |
public class WebApiRouting : IInitializableModule | |
{ | |
public void Initialize(InitializationEngine context) |
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
protected void Application_Error(object sender, EventArgs e) | |
{ | |
Exception exception = Server.GetLastError(); | |
HttpException httpException = exception as HttpException; | |
var configuration = WebConfigurationManager.OpenWebConfiguration("~/Web.config"); | |
CustomErrorsSection customErrors = (CustomErrorsSection)configuration.GetSection("system.web/customErrors"); | |
// if redirect mode | |
if (customErrors != null && |
NewerOlder