/// <summary> /// Initializes a new instance of the <see cref="CustomVirtualPathProvider"/> class. /// </summary> /// <param name="previous">The previous virtual path provider.</param> /// <param name="dynamicAssetsVirtualPath">The virtual path containing dynamic assets.</param> /// <param name="assetLoaderLocator">The content retriever service locator.</param> /// <param name="cacheDependencyBuilder">A builder used to generate cache dependencies.</param> public CustomVirtualPathProvider(VirtualPathProvider previous, string dynamicAssetsVirtualPath, Func <IAssetLoader> assetLoaderLocator, ICacheDependencyBuilder cacheDependencyBuilder) { if (previous == null) { throw new ArgumentNullException("previous"); } if (string.IsNullOrEmpty(dynamicAssetsVirtualPath)) { throw new ArgumentNullException("dynamicAssetsVirtualPath"); } if (assetLoaderLocator == null) { throw new ArgumentNullException("assetLoaderLocator"); } if (cacheDependencyBuilder == null) { throw new ArgumentNullException("cacheDependencyBuilder"); } _previous = previous; _dynamicAssetsVirtualPath = dynamicAssetsVirtualPath; _assetLoaderLocator = assetLoaderLocator; _cacheDependencyBuilder = cacheDependencyBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="DynamicStyleBundlesConfig"/> class. /// </summary> /// <param name="assetLoaderFuncter">A functer to retrieve the asset loader.</param> /// <param name="virtualPath">The virtual path under which the handler is mapped.</param> /// <param name="cacheDependencyBuilder"></param> public DynamicStyleBundlesConfig(Func <IAssetLoader> assetLoaderFuncter, string virtualPath, ICacheDependencyBuilder cacheDependencyBuilder) { if (assetLoaderFuncter == null) { throw new ArgumentNullException("assetLoaderFuncter"); } if (virtualPath == null) { throw new ArgumentNullException("virtualPath"); } if (cacheDependencyBuilder == null) { throw new ArgumentNullException("cacheDependencyBuilder"); } this.AssetLoaderFuncter = assetLoaderFuncter; this.VirtualPath = virtualPath; this.CacheDependencyBuilder = cacheDependencyBuilder; }