ManifestEmbeddedFileProvider assembly (#15580)
parent
01d45238c6
commit
938908f0d7
|
@ -5,7 +5,7 @@ description: Learn how ASP.NET Core abstracts file system access through the use
|
|||
monikerRange: '>= aspnetcore-2.1'
|
||||
ms.author: riande
|
||||
ms.custom: mvc
|
||||
ms.date: 10/07/2019
|
||||
ms.date: 11/07/2019
|
||||
uid: fundamentals/file-providers
|
||||
---
|
||||
# File Providers in ASP.NET Core
|
||||
|
@ -99,7 +99,7 @@ The sample app creates an `ManifestEmbeddedFileProvider` and passes the currentl
|
|||
|
||||
```csharp
|
||||
var manifestEmbeddedProvider =
|
||||
new ManifestEmbeddedFileProvider(Assembly.GetEntryAssembly());
|
||||
new ManifestEmbeddedFileProvider(typeof(Program).Assembly);
|
||||
```
|
||||
|
||||
Additional overloads allow you to:
|
||||
|
@ -246,7 +246,7 @@ The sample app creates an `ManifestEmbeddedFileProvider` and passes the currentl
|
|||
|
||||
```csharp
|
||||
var manifestEmbeddedProvider =
|
||||
new ManifestEmbeddedFileProvider(Assembly.GetEntryAssembly());
|
||||
new ManifestEmbeddedFileProvider(typeof(Program).Assembly);
|
||||
```
|
||||
|
||||
Additional overloads allow you to:
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace FileProviderSample
|
|||
#region snippet1
|
||||
var physicalProvider = _env.ContentRootFileProvider;
|
||||
var manifestEmbeddedProvider =
|
||||
new ManifestEmbeddedFileProvider(Assembly.GetEntryAssembly());
|
||||
new ManifestEmbeddedFileProvider(typeof(Program).Assembly);
|
||||
var compositeProvider =
|
||||
new CompositeFileProvider(physicalProvider, manifestEmbeddedProvider);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace FileProviderSample
|
|||
#region snippet1
|
||||
var physicalProvider = _env.ContentRootFileProvider;
|
||||
var manifestEmbeddedProvider =
|
||||
new ManifestEmbeddedFileProvider(Assembly.GetEntryAssembly());
|
||||
new ManifestEmbeddedFileProvider(typeof(Program).Assembly);
|
||||
var compositeProvider =
|
||||
new CompositeFileProvider(physicalProvider, manifestEmbeddedProvider);
|
||||
|
||||
|
|
Loading…
Reference in New Issue