Git Product home page Git Product logo

Comments (8)

jduv avatar jduv commented on August 15, 2024 1

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.

jduv avatar jduv commented on August 15, 2024

Hmm. Give me a little time to look into this. I think so.

from appdomaintoolkit.

poostwoud avatar poostwoud commented on August 15, 2024

Hi, I could really use this feature as well! Any ideas yet we can reflect on? Thanks!

from appdomaintoolkit.

jduv avatar jduv commented on August 15, 2024

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.

poostwoud avatar poostwoud commented on August 15, 2024

Hi Jeremy,

I created a Gist that explains what I'm looking for.

RemoteNoT

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.

jduv avatar jduv commented on August 15, 2024

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.

poostwoud avatar poostwoud commented on August 15, 2024

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.

Gonzo345 avatar Gonzo345 commented on August 15, 2024

Hi there, there is still no way to get loaded Types/assemblies, right? 😢

from appdomaintoolkit.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.