public LocalResourceUrlManager(DotvvmConfiguration configuration, IResourceHashService hasher) { this.resourceRoute = new DotvvmRoute("dotvvmResource/{hash}/{name:regex(.*)}", null, null, null, configuration); this.hasher = hasher; this.resources = configuration.Resources; this.alternateDirectories = configuration.Debug ? new ConcurrentDictionary <string, string>() : null; this.suppressVersionHash = configuration.Debug; }
public LocalResourceUrlManager(DotvvmConfiguration configuration, IResourceHashService hasher) { this.resourceRoute = new DotvvmRoute( url: $"{HostingConstants.ResourceRouteName}/{{{HashParameterName}}}/{{{NameParameterName}:regex(.*)}}", virtualPath: "", defaultValues: null, presenterFactory: _ => throw new NotSupportedException(), configuration: configuration); this.hasher = hasher; this.resources = configuration.Resources; this.alternateDirectories = configuration.Debug ? new ConcurrentDictionary <string, string?>() : null; this.suppressVersionHash = configuration.Debug; }