<p>Demi, I am under the impression that you&#39;re trying to program in a programming language that you&#39;re not familiar with, I would suggest that you first develop some basic skills about your programming environment, and then exploit them to build the system you need. This is a very general programming question which I don&#39;t think has a lot to do with RabbitMQ. To begin with, if you&#39;re working with the .NET framework, I would suggest you to use an IDE like Visual Studio, MonoDevelop or SharpDevelop.</p>

<div class="gmail_quote">On Jul 12, 2011 9:22 PM, &quot;Demi Zike&quot; &lt;<a href="mailto:habtdemis@gmail.com">habtdemis@gmail.com</a>&gt; wrote:<br type="attribution">&gt; Hi,<br>&gt; <br>&gt; I encapsulated the send and receive codes into a class I created in<br>
&gt; different apps(.cs files). I created a constructor for each class at these<br>&gt; two apps and put the declaration for factory, connection, and channel in<br>&gt; this constructor so that the object that will be created out of classes from<br>
&gt; app1 and app2 will exploit the connection when declaring queues, exchanges,<br>&gt; etc in the respective publish and subscribe methods. However, when I try to<br>&gt; use factory, connection and channel in the subscribe and publish methods, I<br>
&gt; got an error saying it doesn&#39;t know those attributes. How can you make<br>&gt; connection, hostname etc public to the class so that methods in the class<br>&gt; exploit this declaration?<br>&gt; <br>&gt; Regards,<br>
&gt; Demi<br></div>