Class DummyFileProvider
Implements
Inherited Members
Namespace: Coree.NETASP.UnderConstruction
Assembly: Coree.NETASP.dll
Syntax
public class DummyFileProvider : IFileProvider
Constructors
| Edit this page View SourceDummyFileProvider(string)
Declaration
public DummyFileProvider(string root)
Parameters
Type | Name | Description |
---|---|---|
string | root |
Methods
| Edit this page View SourceGetDirectoryContents(string)
Enumerate a directory at the given path, if any.
Declaration
public IDirectoryContents GetDirectoryContents(string subpath)
Parameters
Type | Name | Description |
---|---|---|
string | subpath | Relative path that identifies the directory. |
Returns
Type | Description |
---|---|
IDirectoryContents | Returns the contents of the directory. |
GetFileInfo(string)
Locate a file at the given path.
Declaration
public IFileInfo GetFileInfo(string subpath)
Parameters
Type | Name | Description |
---|---|---|
string | subpath | Relative path that identifies the file. |
Returns
Type | Description |
---|---|
IFileInfo | The file information. Caller must check Exists property. |
Watch(string)
Creates a IChangeToken for the specified filter
.
Declaration
public IChangeToken Watch(string filter)
Parameters
Type | Name | Description |
---|---|---|
string | filter | Filter string used to determine what files or folders to monitor. Example: /*.cs, ., subFolder//*.cshtml. |
Returns
Type | Description |
---|---|
IChangeToken | An IChangeToken that is notified when a file matching |