Skip to content

WebRootFileWatcher class

namespace: Serenity.Web   assembly: Serenity.Net.Web

Default implementation of IWebRootFileWatcher. It reuses physical file providers rooted at wwwroot / staticwebassets so that watching multiple files in the same directory does not create a new provider each time. Watching is only done in development.

public class WebRootFileWatcher : IDisposable, IWebRootFileWatcher
parameter description
hostEnvironment The web host environment.

Public Members

name description
WebRootFileWatcher(…) Default implementation of IWebRootFileWatcher. It reuses physical file providers rooted at wwwroot / staticwebassets so that watching multiple files in the same directory does not create a new provider each time. Watching is only done in development.
Dispose()
GetChangeToken(…)
RegisterCallback(…)

Exceptions

exception condition
ArgumentNullException hostEnvironment is null.

Remarks

Initializes a new instance of the WebRootFileWatcher class.

See Also