This file contains hidden or 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 static void RegisterTypes(IWindsorContainer container) | |
{ | |
var rootPath = HostingEnvironment.MapPath("~/"); | |
var basePath = PathInfo.Combine(PathInfo.Create(rootPath), PathInfo.Create(ConfigurationManager.AppSettings["NitroNet.BasePath"])).ToString(); | |
new DefaultCastleWindsorModule(basePath).Configure(container); | |
new SitecoreCastleWindsorModule().Configure(container); | |
} |
This file contains hidden or 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> | |
/// Specifies the Unity configuration for the main container. | |
/// </summary> | |
public class UnityConfig | |
{ | |
#region Unity Container | |
private static Lazy<IUnityContainer> container = new Lazy<IUnityContainer>(() => | |
{ | |
var container = new UnityContainer(); | |
RegisterTypes(container); |
This file contains hidden or 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
<%@Application Language='C#' %> | |
<%@ Import Namespace="NitroNet" %> | |
<script RunAt="server"> | |
public void Application_Start() | |
{ | |
ViewEngines.Engines.Add(DependencyResolver.Current.GetService<NitroNetViewEngine>()); | |
} | |
</Script> |
This file contains hidden or 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 Microsoft.Practices.Unity; | |
using NitroNet.Sitecore; | |
using NitroNet.Sitecore.Caching; | |
using NitroNet.Sitecore.Rendering; | |
using NitroNet.UnityModules; | |
using NitroNet.ViewEngine.TemplateHandler; | |
using NitroNet.ViewEngine.TemplateHandler.Grid; | |
using Sitecore.Mvc.Common; | |
using System; | |
using Veil; |
This file contains hidden or 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> | |
/// Specifies the Unity configuration for the main container. | |
/// </summary> | |
public class UnityConfig | |
{ | |
#region Unity Container | |
private static Lazy<IUnityContainer> container = new Lazy<IUnityContainer>(() => | |
{ | |
var container = new UnityContainer(); | |
RegisterTypes(container); |
This file contains hidden or 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
<%@Application Language='C#' Inherits="Sitecore.Web.Application" %> | |
<%@ Import Namespace="NitroNet.Sitecore" %> | |
<script RunAt="server"> | |
public void Application_Start() | |
{ | |
ViewEngines.Engines.Add(DependencyResolver.Current.GetService<SitecoreNitroNetViewEngine>()); | |
} | |
</Script> |
This file contains hidden or 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
{ | |
"viewPaths": [ | |
"frontend/views" | |
], | |
"partialPaths": [ | |
"frontend/views/_partials" | |
], | |
"componentPaths": [ | |
"frontend/components/atoms", | |
"frontend/components/molecules", |
This file contains hidden or 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 Sitecore.Data.Items; | |
using Sitecore.Shell.Applications.ContentEditor; | |
namespace Custom.Common.Fields | |
{ | |
/// <summary> | |
/// The custom tree list. | |
/// </summary> | |
public class PathTreeList : TreeList |
This file contains hidden or 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 Sitecore.Shell.Applications.ContentEditor; | |
namespace CustomCode.Common.Fields | |
{ | |
public class AdditionalMultilist : MultilistEx | |
{ | |
private const string Setting = "setting="; | |
public new string Source |
This file contains hidden or 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
container.RegisterType<ITitleLogic, TitleLogic>(new ContainerControlledLifetimeManager()); | |
container.RegisterType<ITitleService, TitleService>(new ContainerControlledLifetimeManager()); |