Title: classes are not imported into the parallel runspaces · Issue #2 · powercode/PSParallel · GitHub
Open Graph Title: classes are not imported into the parallel runspaces · Issue #2 · powercode/PSParallel
X Title: classes are not imported into the parallel runspaces · Issue #2 · powercode/PSParallel
Description: class Foo { $I Foo($i){ $this.I = $i } } 1..10 | Invoke-Parallel {[Foo]::new($_)} Error: Invoke-Parallel : Unable to find type [Foo].
Open Graph Description: class Foo { $I Foo($i){ $this.I = $i } } 1..10 | Invoke-Parallel {[Foo]::new($_)} Error: Invoke-Parallel : Unable to find type [Foo].
X Description: class Foo { $I Foo($i){ $this.I = $i } } 1..10 | Invoke-Parallel {[Foo]::new($_)} Error: Invoke-Parallel : Unable to find type [Foo].
Opengraph URL: https://github.com/powercode/PSParallel/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"classes are not imported into the parallel runspaces","articleBody":"``` PowerShell\nclass Foo {\n $I\n Foo($i){ $this.I = $i }\n}\n\n1..10 | Invoke-Parallel {[Foo]::new($_)}\n```\n\nError: Invoke-Parallel : Unable to find type [Foo].\n","author":{"url":"https://github.com/powercode","@type":"Person","name":"powercode"},"datePublished":"2015-11-27T08:01:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2/PSParallel/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4036489f-2c88-8386-1c0a-ad2330c21fe9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C302:29B6E8:2838BE2:35B2DFD:696EE6A8 |
| html-safe-nonce | 6e2c8ad08ca5e86da6ae31c6f70a576c07e50f676c59b4398139287858efdf08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzAyOjI5QjZFODoyODM4QkUyOjM1QjJERkQ6Njk2RUU2QTgiLCJ2aXNpdG9yX2lkIjoiNTMzMTcwMTg3NTM2NTMwODA3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f947ac7c287648f16776a0c5f8189edefe545e3fb22af797967dc84e1ad8e7a3 |
| hovercard-subject-tag | issue:119148363 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/powercode/PSParallel/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/315c54f0ccc2fb4e713abdec58075e8c5229e83c9ccba9a53b7579861d958458/powercode/PSParallel/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/315c54f0ccc2fb4e713abdec58075e8c5229e83c9ccba9a53b7579861d958458/powercode/PSParallel/issues/2 |
| og:image:alt | class Foo { $I Foo($i){ $this.I = $i } } 1..10 | Invoke-Parallel {[Foo]::new($_)} Error: Invoke-Parallel : Unable to find type [Foo]. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | powercode |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/powercode/PSParallel git https://github.com/powercode/PSParallel.git |
| octolytics-dimension-user_id | 3505151 |
| octolytics-dimension-user_login | powercode |
| octolytics-dimension-repository_id | 46653749 |
| octolytics-dimension-repository_nwo | powercode/PSParallel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 46653749 |
| octolytics-dimension-repository_network_root_nwo | powercode/PSParallel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width