Instantly share code, notes, and snippets.

Embed
What would you like to do?
using Sitecore.Pipelines;
using Sitecore.StaticAssets.Infrastructure;
namespace Sitecore.StaticAssets.Pipelines
{
public class InitializeStaticAssetsResolver
{
private readonly string _assetPath;
public InitializeStaticAssetsResolver(string assetPath)
{
_assetPath = assetPath;
}
public void Process(PipelineArgs args)
{
StaticAssets.Initialize(new StaticAssetResolver(Server.MapPath(_assetPath), HttpContext.Current.Cache));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment