public Bundle(IBundleContext bundleContext, IBundleRenderer bundleRenderer, IBundleContentTransformer[] contentTransformers) { _bundleRenderer = bundleRenderer; Context = bundleContext; BundleContentTransformers = contentTransformers?.ToArray() ?? new IBundleContentTransformer[0]; _bundleState = BundleState.CreateEmpty(_bundleRenderer.ContentType); }
public void Dispose() { // Make conatiner empty to lose all dependencies TryUpdateBundleState(() => BundleState.CreateEmpty(_bundleRenderer.ContentType)); }