Skip to content

Instantly share code, notes, and snippets.

@rustyswayne
Created March 25, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rustyswayne/bf06bb6e5ca5f80b0ae9 to your computer and use it in GitHub Desktop.
Save rustyswayne/bf06bb6e5ca5f80b0ae9 to your computer and use it in GitHub Desktop.
Sample ApplicationEventHandler
public namespace MyNamespace
{
/// <summary>
/// Handles the Umbraco Application "Starting" and "Started" event and initiates the Merchello startup
/// </summary>
public class UmbracoApplicationEventHandler : ApplicationEventHandler
{
/// <summary>
/// The Umbraco Application Starting event.
/// </summary>
/// <param name="umbracoApplication">
/// The umbraco application.
/// </param>
/// <param name="applicationContext">
/// The application context.
/// </param>
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
base.ApplicationStarted(umbracoApplication, applicationContext);
var merchelloContext = MerchelloContext.Current;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment