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
Methods
CanLocate(Uri)
Determines whether the given locator is able to locate the given URI
public bool CanLocate(Uri uri)
Parameters
uri
Urithe 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
Urithe input URI
Returns
- Uri
the URI as used for a repository
Open(Uri)
Opens the given URI
public Stream Open(Uri repositoryId)
Parameters
repositoryId
Urithe URI as used in the repository
Returns
- Stream
A stream