Please note: Use of the Data ONTAP PowerShell Toolkit Proxy is UNSUPPORTED.
Toolkit 2.1 included stable output types; Toolkit 2.2 expands upon this by introducing the Data ONTAP PowerShell Toolkit Proxy. Attached to this post is everything you will need to get started developing .Net applications using the Data ONTAP PowerShell Toolkit.
There are 3 things included in the DataONTAP.Proxy archive attached to this post.
1) The DataONTAP.Proxy.dll.
2) "Getting Started with the Data ONTAP PowerShell Toolkit Proxy Library" document.
3) The "ProxySample" Visual Studio 2010 solution.
The Data ONTAP PowerShell Toolkit Proxy Library simplifies the development of applications built on the PowerShell Toolkit. The Proxy handles the interaction with PowerShell, allowing the developer to focus more on the solution and less on PowerShell.
This is accomplished by transforming the Data ONTAP PowerShell module into a library. PowerShell cmdlet nouns turn into classes. The verbs (and parameter set name) become methods inside of those classes. For example, the cmdlet Get-NaVol is the Get() method in the NaVol class. A Proxy class includes an instance of each of these PowerShell noun classes, making cmdlet invocations incredibly simple. For example, if “ontapProxy” is an instance of the Proxy class, the line “ontapProxy.NaVol.Get()” would return all of the volumes on the current controller.
Please feel free to post feedback here!