Powershell - Creating a timer



Creating a timer in powershell is almost the same as in .net, well it is the same :).
The tricky part is event registration. As you can see below, we using Register-ObjectEvent to link an event handler to our Elapsed event.

Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

Using Custom DLL with IronPython / Scripts