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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Remoting Sinks - appending to message properties

Remoting Sinks - appending to message properties

Scheduled Pinned Locked Moved C#
1 Posts 1 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.
  • K Offline
    K Offline
    Kir Birger
    wrote on last edited by
    #1

    My goal is to append a session id to the messages the remoting client sends out. I have the following code in my client that adds a sink to the client channel: BinaryClientFormatterSinkProvider provider = new BinaryClientFormatterSinkProvider(); provider.Next = new ClientSinkProvider(); IChannel chan = new TcpClientChannel("SADeskSession", provider); ChannelServices.RegisterChannel(chan); ClientSinkProvider is my provider class that creates a sink that implements IclientChannelSink and IMessageSink. in the processMessage method on this sink, I have it appending something to the message's Properties object, however, the serverside sink cannot read this as it should. I must be missing some nuance, as I am a complete novice to remoting. Can someone put me on the right direction? I'm basing this off this article, but my needs are simple enough that I don't need classes as robust as the ones in the article. http://www.codeproject.com/csharp/customsinks.asp

    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