<font size=2 face="sans-serif">Classification: Public<br>
<br>
</font>
<br><font size=2 face="sans-serif">I tried this:</font>
<br>
<br><font size=1 face="}"> </font><font size=1 color=#4181c0 face="}">UnitTestContext</font><font size=1 face="}">
context = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">UnitTestContext</font><font size=1 face="}">();</font>
<br>
<br><font size=1 face="}">            </font><font size=1 color=#4181c0 face="}">ConnectionViewModel</font><font size=1 face="}">
vm = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">ConnectionViewModel</font><font size=1 face="}">(context.App);</font>
<br>
<br><font size=1 face="}">            </font><font size=1 color=#4181c0 face="}">Assert</font><font size=1 face="}">.False(vm.IsConnected);</font>
<br>
<br><font size=1 face="}">            vm.ConnectCommand.Execute(</font><font size=1 color=blue face="}">null</font><font size=1 face="}">);</font>
<br><font size=1 face="}">            context.Login();</font>
<br><font size=1 face="}">            </font><font size=1 color=#4181c0 face="}">Assert</font><font size=1 face="}">.True(vm.IsConnected);</font>
<br>
<br>
<br><font size=2 face="sans-serif">But at the end, LogIn just does this:</font>
<br>
<br><font size=1 face="}">  </font><font size=1 color=red face="}">_qfapp</font><font size=1 face="}">.LogonEvent
+= </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">Action</font><font size=1 face="}">(</font><font size=1 color=blue face="}">delegate</font><font size=1 face="}">()
{ </font><font size=1 color=red face="}">IsConnected</font><font size=1 face="}">
= </font><font size=1 color=blue face="}">true</font><font size=1 face="}">;
});</font>
<br>
<br>
<br><font size=2 face="sans-serif">So, I think it is  not really setting
a connection , just changes the flag.</font>
<br><font size=2 face="sans-serif">In any part of that code is reading
the config file.</font>
<br>
<br><font size=2 face="sans-serif">If I  just need to send orders
from C# to a server ( I'm not expecting to receive anything from the server)
which example should I check?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks & regards</font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Grant Birchmeier <gbirchmeier@connamara.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">"Mailing list for QuickFIX/n"
<quickfixn@lists.quickfixn.com>, </font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">11/21/2013 12:17 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: {{Quickfixn}} Log In troubles</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=2>The login happens automatically.</font>
<br>
<br><font size=2>If you create an initiator, and configure it with the
proper login information and session times, then it will try to connect
whenever it is started during an active session.</font>
<br>
<br><font size=2>Have you looked at any of the example apps?</font>
<br><a href=https://github.com/connamara/quickfixn/tree/master/Examples><font size=3 color=blue><u>https://github.com/connamara/quickfixn/tree/master/Examples</u></font></a>
<br><font size=3><br>
</font>
<br><font size=3>On Thu, Nov 21, 2013 at 10:27 AM, Erika Hernandez <</font><a href=mailto:erika.hernandez@db.com target=_blank><font size=3 color=blue><u>erika.hernandez@db.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=3 face="sans-serif">Classification: Public<br>
<br>
Hi ,</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
I'm ver y new using FIX , I'm trying to send an order from C# to our server.</font><font size=3>
<br>
</font><font size=3 face="sans-serif"><br>
I think this approach will work fine:</font><font size=3> <br>
<br>
</font><font size=1 face="}"><br>
            </font><font size=1 color=blue face="}">var</font><font size=1 face="}">
order = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
QuickFix.FIX42.</font><font size=1 color=#4181c0 face="}">NewOrderSingle</font><font size=1 face="}">();</font><font size=3>
</font><font size=1 face="}"><br>
            order.ClOrdID = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">ClOrdID</font><font size=1 face="}">(</font><font size=1 color=#a11f12 face="}">"myOrder"</font><font size=1 face="}">);</font><font size=3>
</font><font size=1 face="}"><br>
            order.Side = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">Side</font><font size=1 face="}">(</font><font size=1 color=#4181c0 face="}">Side</font><font size=1 face="}">.BUY);</font><font size=3>
</font><font size=1 face="}"><br>
            order.OrdType = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">OrdType</font><font size=1 face="}">(</font><font size=1 color=#4181c0 face="}">OrdType</font><font size=1 face="}">.LIMIT);</font><font size=3>
</font><font size=1 face="}"><br>
            order.Symbol = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">Symbol</font><font size=1 face="}">(</font><font size=1 color=#a11f12 face="}">"AB"</font><font size=1 face="}">);</font><font size=3>
</font><font size=1 face="}"><br>
            order.Price = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">Price</font><font size=1 face="}">((</font><font size=1 color=blue face="}">decimal</font><font size=1 face="}">)19.00);</font><font size=3>
</font><font size=1 face="}"><br>
            order.Account = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">Account</font><font size=1 face="}">(</font><font size=1 color=#a11f12 face="}">"TestAccount"</font><font size=1 face="}">);</font><font size=3>
</font><font size=1 face="}"><br>
            order.ExDestination = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">ExDestination</font><font size=1 face="}">(</font><font size=1 color=#a11f12 face="}">"ARCA_QA"</font><font size=1 face="}">);</font><font size=3>
</font><font size=1 face="}"><br>
            order.OrderQty = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">OrderQty</font><font size=1 face="}">((</font><font size=1 color=blue face="}">decimal</font><font size=1 face="}">)995);</font><font size=3>
</font><font size=1 face="}"><br>
            order.TimeInForce = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">TimeInForce</font><font size=1 face="}">(</font><font size=1 color=#4181c0 face="}">Convert</font><font size=1 face="}">.ToChar(</font><font size=1 color=#a11f12 face="}">"0"</font><font size=1 face="}">));</font><font size=3>
</font><font size=1 face="}"><br>
            order.SecurityID = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">SecurityID</font><font size=1 face="}">(</font><font size=1 color=#a11f12 face="}">"AB.N"</font><font size=1 face="}">);</font><font size=3>
</font><font size=1 face="}"><br>
            order.HandlInst = </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
</font><font size=1 color=#4181c0 face="}">HandlInst</font><font size=1 face="}">(</font><font size=1 color=#4181c0 face="}">HandlInst</font><font size=1 face="}">.AUTOMATED_EXECUTION_ORDER_PUBLIC_BROKER_INTERVENTION_OK);</font><font size=3>
<br>
<br>
</font><font size=1 face="}"><br>
            </font><font size=1 color=#4181c0 face="}">Session</font><font size=1 face="}">.SendToTarget(order);
</font><font size=3><br>
<br>
<br>
</font><font size=3 face="sans-serif"><br>
But previously I need to set a connection with the server , but I don't
know how to log in, I found this approach in the sample code:</font><font size=3>
<br>
</font><font size=1 face="}"><br>
 QuickFix.</font><font size=1 color=#4181c0 face="}">Message</font><font size=1 face="}">
msg =  </font><font size=1 color=blue face="}">new</font><font size=1 face="}">
QuickFix.FIX42.</font><font size=1 color=#4181c0 face="}">Logon</font><font size=1 face="}">();</font><font size=3>
<br>
<br>
</font><font size=3 face="sans-serif"><br>
But I don't know how to execute it  or setting the connection data
( host, port, senderCompID , targetCompID) , I tried to follow the example
but is not clear  enough for me.</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
Does anyone can help me , please?</font><font size=3> <br>
<br>
</font><font size=3 face="sans-serif"><br>
I would really appreciate any help.</font><font size=3> <br>
<br>
</font><font size=3 face="sans-serif"><br>
Regards,</font><font size=3> </font><font size=3 face="sans-serif"><br>
Erika <br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font><font size=1 face="Arial"><br>
---</font><font size=3 face="Courier New"><br>
This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of
the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font><font size=3><br>
_______________________________________________<br>
Quickfixn mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Quickfixn@lists.quickfixn.com><font size=3 color=blue><u>Quickfixn@lists.quickfixn.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target=_blank><font size=3 color=blue><u>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</u></font></a><font size=3><br>
</font>
<br><font size=3><br>
</font>
<br>
<br><font size=3>-- </font>
<br><font size=3>Grant Birchmeier</font>
<br><font size=3 color=#4141ff><b>Connamara Systems, LLC</b></font>
<br><font size=3><b>Made-To-Measure Trading Solutions.</b></font>
<br><font size=3>Exactly what you need. No more. No less.</font>
<br><a href=http://connamara.com/ target=_blank><font size=3 color=blue><u>http://connamara.com</u></font></a><tt><font size=2>_______________________________________________<br>
Quickfixn mailing list<br>
Quickfixn@lists.quickfixn.com<br>
</font></tt><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com"><tt><font size=2>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>
<br><font size="1" face="Arial">---</font><br>
<font size="2" face="Courier New">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font>