I want to load a mono .so file from a unmanaged executable using dlopen. When it is loaded, I'd like it to register something into the system, via say RegisterApp C# call, which can be implemented in two ways: (DLL_THREAD_ATTACH) automatic per module loading ctor as in C modules, or (DllExport) explicitly call some API via dlsym as if the system was calling a unmanaged function. Both cases seem not supported, so i'm wondering what is the best ways there.
Sorry if this is not the right place to submit this request. Please help forward in that case.