I&#39;ve made the very simple change in�RabbitMQ.Client.Impl.ConnectionBase to make�shutdownReport a private not public field and so far my Powershell problems are fixed.<div><br></div><div>It feels like�shutdownReport�being public is just a bug and that it is intended as the private backing field for the public property. I&#39;ll wait to here more once the week starts.</div>
<div><br></div><div>Thanks</div><div>Jon<br><br><div class="gmail_quote">On Sun, Mar 1, 2009 at 11:33 AM, Alexis Richardson <span dir="ltr">&lt;<a href="mailto:alexis.richardson@cohesiveft.com">alexis.richardson@cohesiveft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Jon,<br>
<br>
Thanks very much for raising this here. �Someone will look at your<br>
&#39;getter and the field&#39; question asap.<br>
<br>
Meanwhile (as it is Sunday..), can I ask if you have tried patching<br>
the code per your suggested fix? �If so, can you let us know what<br>
happens.<br>
<br>
alexis<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Sun, Mar 1, 2009 at 6:36 PM, Jon Palmer &lt;<a href="mailto:jonspalmer@gmail.com">jonspalmer@gmail.com</a>&gt; wrote:<br>
&gt; I am new to using RabbitMQ and I couldn&#39;t find if this question has been<br>
&gt; asked on the mailing list before.<br>
&gt; I&#39;m trying to use RabbitMQ.Net inside a Powershell script. Something like<br>
&gt; this:<br>
&gt;<br>
&gt; [System.Reflection.Assembly]::LoadFile( �&quot;C:\tools\RabbitMQ.Client.dll&quot;)<br>
&gt; function GetAmqpChannel( $amqp_host =&quot;127.0.0.1&quot;, $uid =&quot;guest&quot;, $pwd<br>
&gt; =&quot;guest&quot;)<br>
&gt; {<br>
&gt; $factory = new-object RabbitMQ.Client.ConnectionFactory<br>
&gt; $protocol = [RabbitMQ.Client.Protocols]::DefaultProtocol<br>
&gt; return $factory.CreateConnection($protocol, $amqp_host).CreateModel()<br>
&gt; }<br>
&gt; GetAmqpChannel<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; However I receive the following error:<br>
&gt;<br>
&gt; The field/property: &quot;shutdownReport&quot; for type:<br>
&gt; &quot;RabbitMQ.Client.Framing.Impl.v0_8.Connection&quot; differs only in case from<br>
&gt; �the field/property: &quot;ShutdownReport&quot;. Failed to use non CLS compliant type.<br>
&gt;<br>
&gt; Looking at the source it seems that the problem is that�RabbitMQ.Client.Impl<br>
&gt; declares both<br>
&gt;<br>
&gt; public System.Collections.IList ShutdownReport { get; }<br>
&gt;<br>
&gt; public System.Collections.IList shutdownReport<br>
&gt;<br>
&gt; As a result the Client.Impl class isn&#39;t CLS compliant. This prevents me from<br>
&gt; using RabbitMQ.Net inside powershell. Does anyone have suggestions about how<br>
&gt; this can be fixed? Are both the getter and the field a required part of the<br>
&gt; public API or could one be removed?<br>
&gt;<br>
&gt; Many thanks<br>
&gt;<br>
&gt; Jon<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>