{{Quickfixn}} Session config file in C# code

Mike Gatny mgatny at connamara.com
Wed Mar 19 09:54:29 PDT 2014


On Wed, Mar 19, 2014 at 11:53 AM, Mike Gatny <mgatny at connamara.com> wrote:

> Indeed you can.  Take a look at this unit test, which does exactly that:
>
> https://github.com/connamara/quickfixn/blob/master/UnitTests/SessionSettingsTest.cs
>

Here's a snippet from that test:


        [Test]
        public void Load()
        {
            string configuration = new System.Text.StringBuilder()
                .AppendLine("[DEFAULT]")
                .AppendLine("ConnectionType=initiator")
                .AppendLine("BeginString=FIX.4.0")
                .AppendLine("Value=4")
                .AppendLine("Empty=")
                .AppendLine(partialConfiguration.ToString())
                .ToString();
            SessionSettings settings = new SessionSettings(new
System.IO.StringReader(configuration));



--
Mike Gatny
Connamara Systems, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140319/109f6161/attachment-0002.htm>


More information about the Quickfixn mailing list