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. C#
  4. Pass object from an app to another

Pass object from an app to another

Scheduled Pinned Locked Moved C#
csharpdotnetquestion
5 Posts 4 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.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    I have a win app and a web app developed in .Net Framework 3.5. I want to pass an object from web to win app. I want the receiver app be notified from coming object and recive it. What are the solutions?

    Best wishes

    realJSOPR M 2 Replies Last reply
    0
    • M mehrdadc48

      I have a win app and a web app developed in .Net Framework 3.5. I want to pass an object from web to win app. I want the receiver app be notified from coming object and recive it. What are the solutions?

      Best wishes

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Your options: 0) Write a web service that you then access from your desktop app (not kowing the specific details of the data being requested, or why it's being requested, this is the way I'd do it) 1) Write a new page on your web site that you can browse to that returns the data you want, and use the HTTPWebRequest object to browse to that web page. You can't "push" to the desktop app because web services and web sites are request-driven, meaning the data is only returned when that data is requested.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      1 Reply Last reply
      0
      • M mehrdadc48

        I have a win app and a web app developed in .Net Framework 3.5. I want to pass an object from web to win app. I want the receiver app be notified from coming object and recive it. What are the solutions?

        Best wishes

        M Offline
        M Offline
        Manfred Rudolf Bihy
        wrote on last edited by
        #3

        Please look into the Bayeux Protocol[^]. It was based on the idea of inverting the usual client request / server response paradigm. Of course the client still has to connect to the server and keep that connection open, but after that the server can push notifications/data to the client. I'm not sure if there are any client side APIs that would let you use this in a WinForm application, but you could circumvent this by using a webbrowser control inside your WinForm application. Best Regards,

        —MRB

        "With sufficient thrust, pigs fly just fine."

        Ross Callon, The Twelve Networking Truths, RFC1925

        modified on Monday, August 22, 2011 10:58 AM

        K 1 Reply Last reply
        0
        • M Manfred Rudolf Bihy

          Please look into the Bayeux Protocol[^]. It was based on the idea of inverting the usual client request / server response paradigm. Of course the client still has to connect to the server and keep that connection open, but after that the server can push notifications/data to the client. I'm not sure if there are any client side APIs that would let you use this in a WinForm application, but you could circumvent this by using a webbrowser control inside your WinForm application. Best Regards,

          —MRB

          "With sufficient thrust, pigs fly just fine."

          Ross Callon, The Twelve Networking Truths, RFC1925

          modified on Monday, August 22, 2011 10:58 AM

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          This is an interesting answer (hence my vote of 5)! I was 404'd on the link, but this works: http://svn.cometd.com/trunk/bayeux/bayeux.html[^] the URL just needed an "l" on the ".html"

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
          -Or-
          A Dead ringer for Kate Winslett[^]

          M 1 Reply Last reply
          0
          • K Keith Barrow

            This is an interesting answer (hence my vote of 5)! I was 404'd on the link, but this works: http://svn.cometd.com/trunk/bayeux/bayeux.html[^] the URL just needed an "l" on the ".html"

            Sort of a cross between Lawrence of Arabia and Dilbert.[^]
            -Or-
            A Dead ringer for Kate Winslett[^]

            M Offline
            M Offline
            Manfred Rudolf Bihy
            wrote on last edited by
            #5

            Thanks Keith. It looks as if deep linking isn't allowed. I pasted in the link from the google page and now it works. Cheers!

            "With sufficient thrust, pigs fly just fine."

            Ross Callon, The Twelve Networking Truths, RFC1925

            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