Accessing the same service more than twice in the nick of time
<p>I have an application that will access interface service A which is to run from windows startup. This service is used by program B and my application functions on B's presence after getting a pointer to A. 
The scenario is translated as follows,</p>

<pre><code>public interface A{}
///my program
public class MyProgram
{
    public MyProgram()
    {
      ProgramB.DoA();
    }
    public A GetA(){}
}

public class ProgramB
{
   void DoA(){}
}
</code></pre>

<p>The translated source is not true, but that seems to be what I am looking for. In order to eliminate the overhead of allocating and realocating dynamic accesses to the same service used by other processes, would you please provide an actual solution to the problem ?(I am all out of any idea now)</p>
