Table of Contents

Class FileLocator

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

Denotes a locator based on the file system

public class FileLocator : IModelLocator
Inheritance
FileLocator
Implements
Inherited Members

Properties

Instance

Gets the singleton instance of the file locator

public static FileLocator Instance { get; }

Property Value

FileLocator

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 Stream Open(Uri repositoryId)

Parameters

repositoryId Uri

the URI as used in the repository

Returns

Stream

A stream