ManifestEmbeddedFileProvider assembly (#15580)

pull/15604/head
Luke Latham 2019-11-08 05:51:02 -06:00 committed by GitHub
parent 01d45238c6
commit 938908f0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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);

View File

@ -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);