We have a WCF messaging hub. A publisher sends a message object to a method on the service, and the service distributes the message to subscribed recipients. The message object includes a MessageData property of type object.
We have defined an class to which the publisher and subscribers all have a reference. So far, so good.
The problem is that the messaging hub does not have a reference to this class, so when the messaging hub receives the WCF message, a serialization exception occurs. We don't want to have to redeploy the messaging hub with updated references every time we decide to send a new object through the MessageData.
I don't know if it is even possible (doubtful), but I guess I'm looking for a way to tell the messaging hub to just pass the object through without caring about what type it is. I'd appreciate any input anyone has for a good solution to this.
As a workaround, we have manually serialized the object into XML and sent that as a string in the message. Since the hub knows about strings, everything is ok.
We have defined an class to which the publisher and subscribers all have a reference. So far, so good.
The problem is that the messaging hub does not have a reference to this class, so when the messaging hub receives the WCF message, a serialization exception occurs. We don't want to have to redeploy the messaging hub with updated references every time we decide to send a new object through the MessageData.
I don't know if it is even possible (doubtful), but I guess I'm looking for a way to tell the messaging hub to just pass the object through without caring about what type it is. I'd appreciate any input anyone has for a good solution to this.
As a workaround, we have manually serialized the object into XML and sent that as a string in the message. Since the hub knows about strings, everything is ok.