Created
March 25, 2015 20:26
-
-
Save rustyswayne/bf06bb6e5ca5f80b0ae9 to your computer and use it in GitHub Desktop.
Sample ApplicationEventHandler
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 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