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. Remoting question

Remoting question

Scheduled Pinned Locked Moved C#
question
3 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.
  • S Offline
    S Offline
    Skynyrd
    wrote on last edited by
    #1

    Hi all. This is the first time I'm tackling a remote application so I got a few doubts I wanna get straightened out before I get into it. The first question that comes to mind is: what is the cost of keeping a registered channel during the client application's life. I mean, is it worth it to register and unregister a tcp channel everytime I call the remote object or is registering a channel when the app starts and closing it only when the user exits the client application a good enough solution? Thanks

    A 1 Reply Last reply
    0
    • S Skynyrd

      Hi all. This is the first time I'm tackling a remote application so I got a few doubts I wanna get straightened out before I get into it. The first question that comes to mind is: what is the cost of keeping a registered channel during the client application's life. I mean, is it worth it to register and unregister a tcp channel everytime I call the remote object or is registering a channel when the app starts and closing it only when the user exits the client application a good enough solution? Thanks

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      I bet the cost of registering and unregistering the channel is going to cost you more than the channel itself. In fact its not necessary to explicitly unregister the channel when the app closes. Framework will take care of that for you. I would worry more about object lifetimes. From what you're saying it sounds like you are doing single call - you shouldn't have any problems. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

      S 1 Reply Last reply
      0
      • A Alex Korchemniy

        I bet the cost of registering and unregistering the channel is going to cost you more than the channel itself. In fact its not necessary to explicitly unregister the channel when the app closes. Framework will take care of that for you. I would worry more about object lifetimes. From what you're saying it sounds like you are doing single call - you shouldn't have any problems. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

        S Offline
        S Offline
        Skynyrd
        wrote on last edited by
        #3

        Thanks for the input Alex. Yes, my remote object will be a single call object and wont need to be a client activated object with state info, so I wont have to worry about the objects lifespan. I'll register a client channel upon the client app's start and keep that one throughout it's whole life.

        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