[Mono-list] Mono embedding with threads + multiple domains

Robert Jordan robertj at gmx.net
Thu Feb 28 14:43:15 UTC 2013


On 28.02.2013 10:15, Roberto De Ioris wrote:
> Hi everyone, i am writing a uWSGI plugin for Mono
>
> https://github.com/unbit/uwsgi/tree/master/plugins/mono
>
> the plugin is already in good shape but now i would like to add
> multi-domains support (currently you can load multiple applications but
> all in the same mono domain)

ApplicationHost.CreateApplicationHost is already creating its
own app domain.

I did not test your code, but it looks like you don't take
this into account. All icalls seem to allocate objects from
the main app domain, but you're expected to allocate them
in the current domain (see mono_domain_get ()).

>
> Albeit it should be simple, i have seen various notes regarding
> multithreading+multidomain as a no-go.

Where did you see these notes?

Robert





More information about the Mono-list mailing list