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.Web.Mvc; | |
| using Castle.Windsor; | |
| using Sitecore.Mvc.Controllers; | |
| using Sitecore.Mvc.Pipelines.Loader; | |
| using Sitecore.Pipelines; | |
| using Interfaces.Managers.Windsor; | |
| using ControllerBuilder = System.Web.Mvc.ControllerBuilder; | |
| namespace Website | |
| { |
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 virtual HtmlString RenderItem(Item item, string controller, string action) | |
| { | |
| Assert.ArgumentNotNull(item, "item"); | |
| Assert.ArgumentNotNullOrEmpty(controller, "controller"); | |
| Assert.ArgumentNotNullOrEmpty(action, "action"); | |
| var r = new Rendering(); | |
| r.DataSource = item.Paths.FullPath; | |
| using (RenderingContext.EnterContext(r)) | |
| { |
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.Diagnostics; | |
| using System.Web; | |
| using Sitecore.Mvc.Pipelines.Response.RenderRendering; | |
| namespace Website.Pipelines.RenderRendering | |
| { | |
| public class PerformanceMeasurementProcessorBegin : RenderRenderingProcessor | |
| { | |
| public override void Process(RenderRenderingArgs args) | |
| { |
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
| <?xml version="1.0"?> | |
| <configuration> | |
| <sitecore> | |
| <pipelines> | |
| <initialize> | |
| <processor type="Website.SetupIoc, Website" /> | |
| </initialize> | |
| </pipelines> | |
| </sitecore> | |
| </configuration> |
NewerOlder