Git Product home page Git Product logo

Comments (3)

jduv avatar jduv commented on August 15, 2024

Yes, it will. So long as you call Dispose() on the context you can use it as long as you like. If you're using proxy objects, remember to handle their leases properly else the domain will GC it: http://msdn.microsoft.com/en-us/magazine/cc300474.aspx.

Closing a context will destroy the app domain--which in effect will also "unload" your assembly. Note that no actual unloading is ocurring--it's impossible to unload an assembly once loaded--instead we're tossing the domain away that contained the assembly. You have to be very, very careful here to not pollute the main domain with any classes from the remotely loaded domain--there are a couple of ways you can do this on accident. Mostly you should avoid reflecting across any classes inside the remotely loaded assembly outside of simple metadata queries, and be sure to only interact with that domain through serialized objects or proxies (those objects extending MarshalByRef)

from appdomaintoolkit.

shootdaj avatar shootdaj commented on August 15, 2024

Thank you for that.

from appdomaintoolkit.

jduv avatar jduv commented on August 15, 2024

No problem. Feel free to ask anything :). I need to add some unit tests demonstrating the above behavior (isolated assembly loading inside a context). Shouldn't be too hard to do--I'll make a note of it.

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.