I want to be able to attach the windows authentication token without having to include that piece of data on the messages themselves.
I've noticed that TransportMessage has Headers, but how do I get access to that before Send message to server?
I want to be able to attach the windows authentication token without having to include that piece of data on the messages themselves.
I've noticed that TransportMessage has Headers, but how do I get access to that before Send message to server?
See the Full Duplex sample - there you'll see how to use headers.
To set a constant outgoing header for a client (suitable for the auth token you want), use Bus.OutgoingHeaders["YourKey"] = "your value";
On the server, you can access headers using message.GetHeader("YourKey").