Created
May 14, 2016 19:34
-
-
Save casper-rasmussen/4e3aba081354a83ace46ebd811168f79 to your computer and use it in GitHub Desktop.
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
[InitializableModule] | |
[ModuleDependency(typeof(ServiceContainerInitialization))] | |
public class SetDefaultAssetGroupInitialization : IInitializableModule | |
{ | |
public void Initialize(InitializationEngine context) | |
{ | |
AssetUrlConventions assetUrlConventions = context.Locate.Advanced.GetInstance<AssetUrlConventions>(); | |
//Add the default group to be Image | |
assetUrlConventions.AddDefaultGroup<BaseProductType>("Image"); | |
} | |
public void Uninitialize(InitializationEngine context) | |
{ | |
} | |
public void Preload(string[] parameters) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment