{{Quickfixn}} Accessing the configuration values

Mike Gatny mgatny at connamara.com
Mon Oct 19 07:56:31 PDT 2015


Jeff,

See this unit test for an example:
https://github.com/connamara/quickfixn/blob/master/UnitTests/SessionSettingsTest.cs#L240-L278

E.g. you would call
*sessionSettings.Get(yourSessionId).GetString("StartDay");*

In the specific case of StartDay/EndDay, you can additional retrieve these
as a System.DayOfWeek with
*sessionSettings.Get(yourSessionId).GetDay("StartDay");*

--
Mike Gatny
Connamara Systems, LLC

On Sun, Oct 18, 2015 at 10:07 PM, Jeff S. <jeff at alphafinhk.com> wrote:

> Hi Folks,
>
>
>
> Could someone please give me the 2-3 lines of code needed to
>
> pull the value out of a configuration parameter.
>
>
>
> For example, if my config file contains the line:
>
>
>
> StartDay=Monday
>
>
>
> and I want to query the session in the code and find out that the
>
> start day is Monday, how would I do that?
>
>
>
>
>
> Thanks,
>
> Jeff
>
>
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20151019/09540741/attachment-0002.htm>


More information about the Quickfixn mailing list