using Microsoft.AspNetCore.Http; using WebOptimizer; namespace Nop.Web.Framework.WebOptimizer; /// /// Represents the default bundle implementation /// public partial class DefaultAsset : IAsset { #region Ctor public DefaultAsset(string route, string contentType) { Route = route; ContentType = contentType; } #endregion #region Methods /// /// Executes the processors and returns the modified content /// /// HTTP context /// Configuration options public Task ExecuteAsync(HttpContext context, IWebOptimizerOptions options) { throw new NotImplementedException(); } /// /// Gets the cache key associated with this version of the asset /// /// HTTP context /// Configuration options /// public string GenerateCacheKey(HttpContext context, IWebOptimizerOptions options) { return string.Empty; } /// /// Adds a source file to the asset /// /// Relative path of a source file public void TryAddSourceFile(string route) { throw new NotImplementedException(); } #endregion #region Properties /// /// Gets the content type produced by the transform /// public string ContentType { get; init; } /// /// Gets a list of processors /// public IList Processors => new List(); /// /// Gets the items collection for the asset /// public IDictionary Items => new Dictionary(); /// /// Gets the route to the bundle output /// public string Route { get; init; } /// /// Gets files to exclude from output results /// public IList ExcludeFiles => new List(); /// /// Gets the webroot relative source files /// public HashSet SourceFiles => new(); #endregion }