Title: Remove ApartmentState support · Issue #4953 · PowerShell/PowerShell · GitHub
Open Graph Title: Remove ApartmentState support · Issue #4953 · PowerShell/PowerShell
X Title: Remove ApartmentState support · Issue #4953 · PowerShell/PowerShell
Description: ApartmentState STA/MTA is only used to interop with COM and not supported on non-Windows. It also seems that dotnet can marshal between STA and MTA just fine so allowing the user to set it is just a perf optimization. I propose we simpli...
Open Graph Description: ApartmentState STA/MTA is only used to interop with COM and not supported on non-Windows. It also seems that dotnet can marshal between STA and MTA just fine so allowing the user to set it is just ...
X Description: ApartmentState STA/MTA is only used to interop with COM and not supported on non-Windows. It also seems that dotnet can marshal between STA and MTA just fine so allowing the user to set it is just ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4953
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove ApartmentState support","articleBody":"ApartmentState STA/MTA is only used to interop with COM and not supported on non-Windows. It also seems that dotnet can [marshal between STA and MTA](https://docs.microsoft.com/en-us/dotnet/framework/interop/interop-marshaling#marshaling_and_com_apartments) just fine so allowing the user to set it is just a perf optimization.\r\n\r\nI propose we simplify our code by removing support. The code base today already has ApartmentState commented out as we run MTA by default (as that is default for dotnet) so this is simply removing the `#if !CORECLR` conditional code.","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-09-29T17:53:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4953/PowerShell/issues/4953"}
| 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:b1dc1c42-4322-77c4-393c-beaf2296e8f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 948C:BD194:169B27:20E2CD:6A577823 |
| html-safe-nonce | 1b44ef9ece8ff6d8823607540bbd08d4e8080e4f6b955d3cbd4f6d119beafd62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDhDOkJEMTk0OjE2OUIyNzoyMEUyQ0Q6NkE1Nzc4MjMiLCJ2aXNpdG9yX2lkIjoiMTAwMzc0Mjc2MjMyNjUyMTg5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6dd99140a13dd3ef5b9283bbba2e7399557245c966985d16f80b84a86225fc3 |
| hovercard-subject-tag | issue:261716749 |
| 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/PowerShell/PowerShell/4953/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d169482fc9338c1ee87e383737034f726267874f919a6c08d37117a6f9a3437d/PowerShell/PowerShell/issues/4953 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d169482fc9338c1ee87e383737034f726267874f919a6c08d37117a6f9a3437d/PowerShell/PowerShell/issues/4953 |
| og:image:alt | ApartmentState STA/MTA is only used to interop with COM and not supported on non-Windows. It also seems that dotnet can marshal between STA and MTA just fine so allowing the user to set it is just ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width