Answered Use Existing Partner

  • Saturday, April 28, 2012 2:46 PM
     
     
    Hi

    I have been reading the manual "Professional Microsoft Robotics Developer Studio" and paragraph 3.9.3 explains the possibility to connect my service to other service already existing and running.

    I have tried to connect two services built in two different solutions using the next command;

    [Partner ("Controlador ", Contract=controlador.Proxy.Contract.Identifier, CreationPolicy=PartnerCreationPolicy.UseExisting, Optional= false)]

    private controlador.Proxy.ControladorOperations _controlPort = new controlador.Proxy.ControladorOperations();

    but always creates the service controlador even if it is running in other port.

    I modify my manifest.xml like the book.


    How should change my service so that it can find and use the service running?

    Thanks in advance.

All Replies

  • Saturday, May 05, 2012 2:23 AM
    Moderator
     
     Answered

    Open your manifest.xml in dssme. Click on the instances of ControladorOperations and delete them.

    Now drag a single instance of ControladorOperations into your manifest.

    Now when you run your manifest, it should create a single instance.

    Another way to ensure this is to select the ControladorOperations for the first one and then when you select for the second one, Dssme will ask you whether you want to use the existing one or a new one. You can pick the existing one option and that should work.

  • Thursday, May 17, 2012 8:09 PM
     
     

    Hi. Sorry for my delay in answering but I been having to change my computer.

    Now I can link some server and only generate then one time.

    Thanks for all.