Sunday, December 30, 2018

Powershell Automation from C#.NET

You could call Powershell Scripts from .NET (C#) application with ease using System.Management.Automation. A sample has been provided here, which utilizes RunSpace pool for more configurablity. i.e You could manage the thread pool, for running the Powershell scripts from C#. i.e You could run it on the calling thread, or on a pool of different threads for higher level of parallelism.


You could find a highly configurable SignalR ChatRoom application here, which make use of Powershell automation to achieve dynamic functionality as needed.


chatroom2

No comments:

Post a Comment