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
/// Based on Episerver V11, and Syndication Feed V11 | |
using Chief2moro.SyndicationFeeds; | |
using EPiServer.Core; | |
using System.ServiceModel.Syndication; | |
using MarieCurie.Domain.Models.Base; | |
using EPiServer.ServiceLocation; | |
using EPiServer; | |
using EPiServer.Web.Routing; | |
using System.Xml.Linq; |
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; | |
namespace Chief2moro.Helpers | |
{ | |
public enum DxcEnvironment | |
{ | |
Development, | |
Integration, | |
Preproduction, | |
Production |
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.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
namespace Scenarios.Business.Initializations | |
{ | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] | |
public class MakerChannelHookInitialisation : IInitializableModule |
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.Net; | |
namespace Scenarios | |
{ | |
public class MakerChannelWebHookSender | |
{ | |
private string iftttApiKey = "sign-up-to-ifttt-to-get-a-key"; | |
public void Send(string eventName, string value1, string value2, string value3) | |
{ |
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
<% @ Page Language="C#" %> | |
<% | |
foreach (string var in Request.ServerVariables) | |
{ | |
Response.Write(var + " " + Request[var] + "<br>"); | |
} | |
%> | |
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.Diagnostics; | |
using System.Linq; | |
using EPiServer; | |
using EPiServer.Cms.Shell.UI.Rest.ContentQuery; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.Find; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Shell.ContentQuery; | |
using EPiServer.Shell.Rest; |
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.Diagnostics; | |
using System.Linq; | |
using EPiServer; | |
using EPiServer.Cms.Shell.UI.Rest.ContentQuery; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.Find; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Shell.ContentQuery; | |
using EPiServer.Shell.Rest; |
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
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<%@ Import Namespace="EPiServer" %> | |
<%@ Import Namespace="EPiServer.Core" %> | |
<%@ Import Namespace="EPiServer.DataAbstraction" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) |
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 EPiBootstrapArea; | |
namespace Example | |
{ | |
public class BootstrapDisplayModeFallbackProvider : IDisplayModeFallbackProvider | |
{ | |
public List<DisplayModeFallback> GetAll() | |
{ | |
var initialData = new List<DisplayModeFallback> |
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
<rewrite> | |
<outboundRules> | |
<!-- Convert all production urls to the correct local environment - in this case test --> | |
<rule name="EnsureCorrectEnvironment-WEB" preCondition="Is_HTML" patternSyntax="Wildcard"> | |
<match filterByTags="A, Form, Frame, IFrame, Img, Link, Script" pattern="*://www.yoursite.com/*" /> | |
<action type="Rewrite" value="{R:1}://test.yoursite.com/{R:2}" /> | |
</rule> | |
<preConditions> | |
<preCondition name="Is_HTML"> | |
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> |
NewerOlder