FileSystemWatcherLiveReload
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class FileSystemWatcherLiveReload : ILiveReload
Fields
Log
View Source
Declaration
public static ILog Log
FileSystemWatcher
The purpose of the FileSystemWatcher is to ensure razor pages are consistent with the code generated by the razor engine. The file system watcher will invalidate pages and queue them for recompilation.
View Source
Declaration
protected FileSystemWatcher FileSystemWatcher
Methods
StartWatching(String)
View Source
Declaration
public void StartWatching(string scanRootPath)
Parameters
Type | Name |
---|---|
System.String | scanRootPath |
FileSystemWatcher_Renamed(Object, RenamedEventArgs)
View Source
Declaration
protected virtual void FileSystemWatcher_Renamed(object sender, RenamedEventArgs e)
Parameters
Type | Name |
---|---|
System.Object | sender |
System.IO.RenamedEventArgs | e |
FileSystemWatcher_Deleted(Object, FileSystemEventArgs)
View Source
Declaration
protected virtual void FileSystemWatcher_Deleted(object sender, FileSystemEventArgs e)
Parameters
Type | Name |
---|---|
System.Object | sender |
System.IO.FileSystemEventArgs | e |
FileSystemWatcher_Created(Object, FileSystemEventArgs)
View Source
Declaration
protected virtual void FileSystemWatcher_Created(object sender, FileSystemEventArgs e)
Parameters
Type | Name |
---|---|
System.Object | sender |
System.IO.FileSystemEventArgs | e |
FileSystemWatcher_Changed(Object, FileSystemEventArgs)
View Source
Declaration
protected virtual void FileSystemWatcher_Changed(object sender, FileSystemEventArgs e)
Parameters
Type | Name |
---|---|
System.Object | sender |
System.IO.FileSystemEventArgs | e |