| description | RunSpace09 Code Sample |
|---|---|
| ms.date | 09/13/2016 |
| ms.topic | reference |
| title | RunSpace09 Code Sample |
This sample application creates and opens a runspace, creates and asynchronously invokes a pipeline, and then uses pipeline events to process the script asynchronously. The script that is run by this application creates the integers 1 through 10 in 0.5-second intervals (500 ms).
:::code language="csharp" source="~/../powershell-sdk-samples/SDK-2.0/csharp/Runspace09/Runspace09.cs" range="11-113":::