Table of Contents

Class MapLocator

Namespace
NMF.Models.Repository
Assembly
NMF.Models.dll

Denotes an abstract locator that maps to preconfigured locations

public abstract class MapLocator : IModelLocator
Inheritance
MapLocator
Implements
Derived
Inherited Members

Constructors

MapLocator()

Creates a new instance

protected MapLocator()

MapLocator(IDictionary<Uri, string>)

Creates a new instance

protected MapLocator(IDictionary<Uri, string> mappings)

Parameters

mappings IDictionary<Uri, string>

The mappings

Properties

Mappings

Gets the preconfiured mappings

public IDictionary<Uri, string> Mappings { get; }

Property Value

IDictionary<Uri, string>

Methods

CanLocate(Uri)

Determines whether the given locator is able to locate the given URI

public bool CanLocate(Uri uri)

Parameters

uri Uri

the URI to locate

Returns

bool

true, if the URI can be located, otherwise false

GetRepositoryUri(Uri)

Calculates the repository URI for the given URI

public Uri GetRepositoryUri(Uri uri)

Parameters

uri Uri

the input URI

Returns

Uri

the URI as used for a repository

Open(Uri)

Opens the given URI

public abstract Stream Open(Uri repositoryId)

Parameters

repositoryId Uri

the URI as used in the repository

Returns

Stream

A stream