Beispiel #1
0
 public AssetMiddleware(RequestDelegate next, IOptions<AssetOptions> options, IAssetRegistry registry, IApplicationEnvironment env)
 {
     _next = next;
     _options = options.Options;
     _assetPath = new PathString(options.Options.ServePath);
     _registry = registry;
     _baseDirectory = env.ApplicationBasePath;
 }
Beispiel #2
0
 public AssetRegistry(IOptions<AssetOptions> options)
 {
     _options = options.Options;
 }