This project is read-only.

PSEventing 1.0

Rating: No reviews yet
Downloads: 1156
Released: Jul 15, 2007
Updated: Jul 1, 2010 by oisin
Dev status: Stable Help Icon

Recommended Download

Application PSEventing 1.0
application, 46K, uploaded Jul 24, 2007 - 391 downloads

Other Available Downloads

Example filesystemwatcher.ps1
example, 1K, uploaded Jul 16, 2007 - 278 downloads
Example sqlbackup.ps1
example, 2K, uploaded Jul 16, 2007 - 214 downloads
Example eventhandlers.ps1
example, 3K, uploaded Jul 23, 2007 - 273 downloads

Release Notes

Changes in this release:

  • A PSEvent object's Source property now contains the PSVariable wrapping the original object which generated the event. This resolves scoping issues with 0.5 whereby it wasn't always possible to reach the original sender by variable name (using get-variable).
  • New-Event cmdlet added for inserting user-generated "events" into the queue. This cmdlet allows attaching an abitrary object payload which is available in the PSEvent's Args.Data property.
  • All event handlers are now AUTOMATICALLY unhooked if the original PSVariable goes out of scope! No more phantom events continually generated if you forget to use the explicit "Disconnect-EventListener" and lose your reference. Simply null out a variable or let it disappear into the scopeless void!
  • and finally, some bugfixes, as listed below...

Have fun, and I've uploaded the source for those interesting in lightweight codegen, reflection and good old fashioned back-against-the-wall hackery ;-)

Just unzip the archive into a permanent location and run the included install.ps1 script.

- Oisin / x0n

Reviews for this release

No reviews yet for this release.