You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Register-ObjectEvent on FileSystemWatcher objects, but do the register in a new runspace - and we only need 1 runspace as well, multiple won't work here.
Need to make sure the FileSystemWatchers are all disposed on server restart and stop.
We could also support :parameter placeholders in wildcard paths. For example: C:/Websites/:website would monitor files changes at C:/Websites/*, and the "website" parameter would be the name of the site available at $FileEvent.Parameters['website'] - similar to Routes.
The text was updated successfully, but these errors were encountered:
Use
Register-ObjectEvent
onFileSystemWatcher
objects, but do the register in a new runspace - and we only need 1 runspace as well, multiple won't work here.Need to make sure the FileSystemWatchers are all disposed on server restart and stop.
Scriptblock parameters:
Example, to watch a
C:\temp
folder and all*.txt
files - for changed events only:We could also support
:parameter
placeholders in wildcard paths. For example:C:/Websites/:website
would monitor files changes atC:/Websites/*
, and the "website" parameter would be the name of the site available at$FileEvent.Parameters['website']
- similar to Routes.The text was updated successfully, but these errors were encountered: