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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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; | |
using EPiServer.Core; | |
using EPiServer.Shell.Services.Rest; | |
using EPiServer.Web; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using WSOL.EPiServerCms.Web.Interfaces; |
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 && |
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
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.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 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 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 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.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 |
OlderNewer