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
[Facet(1, FacetType.TermsFacetFor)] | |
public virtual string TermsFacetExample { get; set; } | |
IClient searchManager = Client.CreateFromConfig(); | |
ITypeSearch<StandardPage> queryTest = searchManager.Search<StandardPage>().For("test"); | |
queryTest = queryTest.AddFacets(); | |
IContentResult<StandardPage> results = queryTest.GetContentResult(); | |
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 Session_Start(object sender, EventArgs e) | |
{ | |
this.UpdateViewedPagesSession(); | |
this.UpdateViewedCategoriesSession(); | |
} | |
protected void UpdateViewedPagesSession() | |
{ | |
HttpCookie myCookie = 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 System; | |
using System.Web.Mvc; | |
using EPiServer.Shell.ObjectEditing; | |
using Mediachase.BusinessFoundation.Data.Meta.Management; | |
/// <summary> | |
/// The meta enum selection attribute. | |
/// </summary> |
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 void SendCartToQueue() | |
{ | |
if (this._iMessagingService.MessagingEnabled && this._iMessagingService.SendMessage(this.CartHelper.Cart)) | |
{ | |
return; | |
} | |
this.CartHelper.Cart.SaveAsPurchaseOrder(); | |
} |
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 System.Web.Security; | |
using EPiServer.ContentCollaboration.Notification; | |
using EPiServer.Notification; | |
using EPiServer.PlugIn; | |
using EPiServer.Scheduler; | |
using EPiServer.ServiceLocation; |
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.Commerce.Catalog.ContentTypes | |
@using EPiServer.Commerce.Marketing | |
@using EPiServer.Commerce.Marketing.Internal | |
@using EPiServer.Commerce.Marketing.Promotions | |
@using EPiServer.Framework.Localization | |
@using EPiServer.Reference.Commerce.Site.Features.Product.Models | |
@using EPiServer.Reference.Commerce.Site.Features.Product.Services | |
@using EPiServer.Reference.Commerce.Site.Features.Search.Models | |
@using EPiServer.Reference.Commerce.Site.Features.Search.Services |
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> | |
/// Class PromotionExtensions. | |
/// </summary> | |
/// <author>Jeroen Stemerdink</author> | |
public static class PromotionExtensions | |
{ | |
/// <summary> | |
/// The <see cref="ILogger" /> instance | |
/// </summary> | |
private static readonly ILogger Log = LogManager.GetLogger(); |
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 class DummyController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
// Create an empty Razor view called PartialRender.cshtml in views\shared | |
return this.PartialView("PartialRender"); | |
} | |
} |
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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FormContainerBlockControl.ascx.cs" Inherits="EPiServerWebForms.Views.Blocks.FormContainerBlockControl" %> | |
<%@ Import Namespace="EPiServerWebForms.Business.MvcHelpers" %> | |
<% MvcUtility.RenderPartial("FormsContentArea", this.FakeArea, this.FakeContext); %> |
OlderNewer