Esempio n. 1
0
        private PSDataCollection <PSObject> NewOutputCollection()
        {
            var output = new PSDataCollection <PSObject>();

            _result           = new EnumerableForMutatingCollection <PSObject, object>(output, each => each.ImmediateBaseObject);
            output.DataAdded += (sender, eventArgs) => _result.ElementAdded();
            return(output);
        }
Esempio n. 2
0
 public void WaitForResult()
 {
     _result.Wait();
     _result = null;
 }