Table of Contents

Interface IModelLocator

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

Denotes an interface for a component that can locate models

public interface IModelLocator

Methods

CanLocate(Uri)

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

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

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

Stream Open(Uri repositoryId)

Parameters

repositoryId Uri

the URI as used in the repository

Returns

Stream

A stream