Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How can a remoted .NET object access objects/methods in the hosting app?

How can a remoted .NET object access objects/methods in the hosting app?

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialcsharphostingalgorithmshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dathom
    wrote on last edited by
    #1

    I have two existing (complex) .NET 3.0 Winform apps A and B that need to exchange information synchronously (using request/response). Both apps are running on the same computer at present, but perhaps over a LAN later. Since I've used .NET Remoting in the past, I figured that's the way to go... So I setup app A to host class X for Remoting, and I setup app B to instantiate class X (on A) and then invoke its methods. Works great, except class X (being hosted on A) can't actually access the hosting app A. For example, it can't invoke A's methods, access its variables, etc. The functional requirement is to have apps A and B exchange information, not simply to allow B to invoke an "isolated" object that's hosted by A, but which can't really interact with app A. I've been searching all day, and so far all I've found is a passing reference that it should be possible for app A "to get a proxy to the remote object". But I don't have a clue how to do that, or what it implies. ANY help would be greatly appreciated! DT

    M 1 Reply Last reply
    0
    • D Dathom

      I have two existing (complex) .NET 3.0 Winform apps A and B that need to exchange information synchronously (using request/response). Both apps are running on the same computer at present, but perhaps over a LAN later. Since I've used .NET Remoting in the past, I figured that's the way to go... So I setup app A to host class X for Remoting, and I setup app B to instantiate class X (on A) and then invoke its methods. Works great, except class X (being hosted on A) can't actually access the hosting app A. For example, it can't invoke A's methods, access its variables, etc. The functional requirement is to have apps A and B exchange information, not simply to allow B to invoke an "isolated" object that's hosted by A, but which can't really interact with app A. I've been searching all day, and so far all I've found is a passing reference that it should be possible for app A "to get a proxy to the remote object". But I don't have a clue how to do that, or what it implies. ANY help would be greatly appreciated! DT

      M Offline
      M Offline
      Moim Hossain
      wrote on last edited by
      #2

      I was wondering...you could you a message queue for this kind of scenario...which could make the code more simpler...

      Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups