Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: PowerShell Eventing Library 0.5 Beta Released

HTVi
TV Discussion Newsgroups

PowerShell Eventing Library 0.5 Beta Released
Oisin Grehan <oising[ at ]gmail.com> 5/11/2007 3:26:41 PM
PSEventing 0.5 beta released

Events in PowerShell - but how? Events in a .NET executable are
generally raised and handled in realtime; at first glance, this
doesn't seem possible with our favourite little shell. PowerShell
lets
us wire up scriptblocks to .NET events as handlers quite easily, but
unfortunately when the event is raised, there is no runspace
available
to execute our script. So, how do we get a runspace to execute a
handler? Well, we ensure that we are in a running pipeline before
processing events. This is achieved by disconnecting the process: we
separate the occurance of events from the act of handling them.

- example script on homepage with system.io.filesystemwatcher
- example script for async backup of sqlserver with write-progress
with download

more example scripts will be available soon.

see MoW's post:
http://thepowershellguy.com/blogs/posh/archive/2007/05/09/powershell-...

available at: http://www.codeplex.com/PSEventing
(source will be available soon)

Have fun, and please leave feedback, issues, ideas, etc on codeplex
you can! much appreciated.

- Oisin / x0n

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen