Comments (8)
You should be able to get that through standard framework calls. Sorry, I don't really maintain this project anymore--if anyone wants to submit PRs I'm 100% happy to review them, merge, and release.
from appdomaintoolkit.
Hmm. Give me a little time to look into this. I think so.
from appdomaintoolkit.
Hi, I could really use this feature as well! Any ideas yet we can reflect on? Thanks!
from appdomaintoolkit.
I think there may be a way to use dynamic and achieve what you're looking for. Or possibly implementing our own dynamic mechanics inside the child domain and invoking them via a RemoteFunc. I'll have some more time this weekend to look into it.
from appdomaintoolkit.
Hi Jeremy,
I created a Gist that explains what I'm looking for.
What I've basically done is create a Remote class that doesn't use a generic type. I've added a CreateProxy method with parameters for the class name I want to use (the "T" sort of speak) and the assemblies to scan for (to prevent scanning all of them). Also I'm passing the AppDomainContext instead of the AppDomain, as the first has great support for working with the loaded assemblies.
In the method itself I'm simply scanning the specified assemblies for the specified class name. If found it checks if it is based on MarshalByRefObject (the "where T : MarshalByRefObject) and the rest equals Remote.
Of course variants can be made with the parameters, like namespaces, etc. And I'm not sure if passing AppDomainContext can cause any problems.
What do you think?
Best regards,
Peter
from appdomaintoolkit.
At first glance I like it. If you want to fork it, unit test it, and submit a PR I'll give it a look.
from appdomaintoolkit.
Hi Jeremy, for my project I didn't get it to work without some severe refactoring. It is quite a complex subject... For now I've used your library as an inspiration for a part of my project. If you have the time I'm curious what you think of it! https://github.com/poostwoud/AppDomainMessaging
from appdomaintoolkit.
Hi there, there is still no way to get loaded Types/assemblies, right? 😢
from appdomaintoolkit.
Related Issues (16)
- Assembly deep references HOT 1
- IDisposable usage is not intuitive HOT 4
- Unable to see how this can work when the assemblies being loaded are not known to the host at compile time HOT 4
- Cannot build downloaded ZIP HOT 4
- Serialization failure using RemoteFunc.Invoke HOT 5
- getting "could not load file or assembly" HOT 1
- Examples of hot swapping assemblies HOT 4
- AppDomain requests unrestricted access upon creation HOT 10
- Ability to use Assembly.Load(byte[]) HOT 1
- Appdomain is sometimes loading dlls from Parent directory of PrivateBinPath and sometimes from PrivateBinPath HOT 4
- How to persist an AppDomain and manually unload assembly? HOT 3
- Is there a way to get a direct reference to the Assembly object in the AppDomainContext? HOT 2
- Test FindByCodeBase_NoRefAssembly_LoadFrom fails when project is part of another solution HOT 7
- Issue with Resolve event HOT 7
- nuget package request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appdomaintoolkit.