Table of Contents

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 Assembly

the 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

Assembly

Methods

Open(Uri)

Opens the given URI

public override Stream Open(Uri repositoryId)

Parameters

repositoryId Uri

the URI as used in the repository

Returns

Stream

A stream