Created
February 13, 2013 21:56
-
-
Save vkoppaka/4948721 to your computer and use it in GitHub Desktop.
Global.asax.cs file that shows how to register custom formatter for Order Confirmation Template Formatter in Sitefinity Ecommerce
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.Linq; | |
using Telerik.Microsoft.Practices.Unity; | |
using Telerik.Sitefinity.Abstractions; | |
using Telerik.Sitefinity.Data; | |
using Telerik.Sitefinity.Modules.Ecommerce.Orders.Interfaces; | |
namespace SitefinityWebApp | |
{ | |
public class Global : System.Web.HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) | |
{ | |
Bootstrapper.Initialized += new EventHandler<ExecutedEventArgs>(Bootstrapper_Initialized); | |
} | |
void Bootstrapper_Initialized(object sender,ExecutedEventArgs e) | |
{ | |
if (e.CommandName == "Bootstrapped") | |
{ | |
ObjectFactory.Container.RegisterType<IOrderConfirmationEmailTemplateFormatter, OrderConfirmationEmailTemplateFormatterWithCustomFields>(new ContainerControlledLifetimeManager()); | |
} | |
} | |
protected void Session_Start(object sender, EventArgs e) | |
{ | |
} | |
protected void Application_BeginRequest(object sender, EventArgs e) | |
{ | |
} | |
protected void Application_AuthenticateRequest(object sender, EventArgs e) | |
{ | |
} | |
protected void Application_Error(object sender, EventArgs e) | |
{ | |
} | |
protected void Session_End(object sender, EventArgs e) | |
{ | |
} | |
protected void Application_End(object sender, EventArgs e) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment