Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] Propagate hosting properties through AppContext #37240

Closed
CoffeeFlux opened this issue Jun 1, 2020 · 2 comments
Closed

[mono] Propagate hosting properties through AppContext #37240

CoffeeFlux opened this issue Jun 1, 2020 · 2 comments
Assignees
Milestone

Comments

@CoffeeFlux
Copy link
Contributor

See: https:/dotnet/runtime/blob/master/src/mono/mono/mini/monovm.c#L184-L192

While setting the environmental variable works for now, it would be nice to handle this properly, especially since we may want to set other AppContext properties in this fashion. There should be two main components to this work:

  1. Creating helper functions for calling into AppContext from the native side
  2. Storing the relevant properties set at host initialization (monovm_initialize) until they can be set after runtime startup (mono_jit_init)
@ghost
Copy link

ghost commented Jun 1, 2020

Tagging subscribers to this area: @CoffeeFlux
Notify danmosemsft if you want to be subscribed.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jun 1, 2020
@lambdageek lambdageek added this to the 6.0.0 milestone Jun 22, 2020
@lambdageek lambdageek removed the untriaged New issue has not been triaged by the area owner label Jun 22, 2020
@CoffeeFlux CoffeeFlux changed the title [mono] Propagate System.Globalization runtime properties through AppContext [mono] Propagate hosting properties through AppContext Mar 5, 2021
@fanyang-mono
Copy link
Member

This functionality has already been supported. The code lives at https:/dotnet/runtime/blob/main/src/mono/mono/metadata/appdomain.c#L1256

@ghost ghost locked as resolved and limited conversation to collaborators Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants