<div class="gmail_quote">On Fri, Aug 17, 2012 at 3:44 PM, Wizaerd <span dir="ltr">&lt;<a href="mailto:wizaerd@gmail.com" target="_blank">wizaerd@gmail.com</a>&gt;</span> wrote:<br><div>�</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I had tried adding a custom header to the headers collection with the Type, but RabbitMQ threw an error, and I was never able to get the Type to pass thru, plus there was no way to dynamically deserialize into the Type of object. �Unfortunately, the Type of object is not going to be acceptable.</blockquote>

<div><br></div><div>You probably can&#39;t pass the Type itself into the header, but you should be able to pass in the fully qualified type name as a string. �</div><div><br></div><div>var props = model.CreateBasicProperties();</div>

<div>props.Headers[&quot;type&quot;] = typof(User).AssemblyQualifiedName;</div><div><br></div><div>Then on the other end, you should be able to get out the type name, use Type.GetType(typeName, true) to load the type, and perform deserialization as usual.</div>

<div>�</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>_______________________________________________</div>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br>