Class ResourceMapLocator
- Namespace
- NMF.Models.Repository
- Assembly
- NMF.Models.dll
Denotes a locator that maps to assembly embedded resources
public class ResourceMapLocator : MapLocator, IModelLocator
- Inheritance
-
ResourceMapLocator
- Implements
- Inherited Members
Constructors
ResourceMapLocator(Assembly)
Creates a new instance
public ResourceMapLocator(Assembly assembly)
Parameters
assembly
Assemblythe target assembly
Exceptions
- ArgumentNullException
thrown if the assembly is null
Properties
Assembly
Gets the assembly for which the resource mapper maps to
public Assembly Assembly { get; }
Property Value
Methods
Open(Uri)
Opens the given URI
public override Stream Open(Uri repositoryId)
Parameters
repositoryId
Urithe URI as used in the repository
Returns
- Stream
A stream