{{Quickfixn}} IInitiator

Grant Birchmeier gbirchmeier at connamara.com
Fri Nov 3 11:19:31 PDT 2017


Correct.  But you don't really need to do that in a real application.



On Fri, Nov 3, 2017 at 1:10 PM, Simone Cavallarin <
Simone.Cavallarin at banorcapital.com> wrote:

> So basically without it this functions would not be available:
>
>
>
> else if (action == 'g')
>
>                     {
>
>                         if (this.MyInitiator.IsStopped)
>
>                         {
>
>                             Console.WriteLine("Restarting initiator...");
>
>                             this.MyInitiator.Start();
>
>                         }
>
>                         else
>
>                             Console.WriteLine("Already started.");
>
>                     }
>
>
>
> else if (action == 'x')
>
>                     {
>
>                         if (this.MyInitiator.IsStopped)
>
>                             Console.WriteLine("Already stopped.");
>
>                         else
>
>                         {
>
>                             Console.WriteLine("Stopping initiator...");
>
>                             this.MyInitiator.Stop();
>
>                         }
>
>                     }
>
>
>
>
>
> Good to know! Thanks!
>
>
>
>
>
> *From:* Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] *On
> Behalf Of *Grant Birchmeier
> *Sent:* 03 November 2017 17:32
> *To:* Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
> *Subject:* Re: {{Quickfixn}} IInitiator
>
>
>
> It's only *initialized* as null.  Notice that it's a public variable.  It
> gets set in the `Main` function within Program.cs.
>
>
>
> Normally, the IApplication doesn't have access to the IInitiator object.
> But I did that little trick to I could add the "secret" commands 'g' and
> 'x', that can stop and start the initiator (see the Run() function) while
> the app is running.
>
>
>
> On Fri, Nov 3, 2017 at 12:00 PM, Simone Cavallarin <Simone.Cavallarin@
> banorcapital.com> wrote:
>
> Hi All,
>
>
>
> I don’t quite understand this part into the example TradeClient.
>
>
>
>         // This variable is a kludge for developer test purposes. Don't
> do this on a production application.
>
>         public IInitiator MyInitiator = null;
>
>
>
> What generate a Null IInitiator? And why this is only for developer
> purposes?
>
>
>
> Thanks!
>
>
>
> s
>
> Simone Cavallarin
> T. +44 203 002 1866 <+44%2020%203002%201866> | F. +44 203 002 1856
> <+44%2020%203002%201856> | M. +44 741 387 6068 <+44%207413%20876068>
> Simone.Cavallarin at banorcapital.com <simone.cavallarin at banorcapital.com> |
> www.banorcapital.com
>
> [image: Logo]
>
> Banor Capital Limited
> 6th Floor, 16 Berkeley Street, London W1J 8DZ (UK)
>
> Banor Capital Limited is Authorised and Regulated by
> the Financial Conduct Authority. Please visit our website
> <http://www.banorcapital.com/Disclaimer.html> for important
> disclaimers/disclosures regarding Banor Capital’s services.
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
>
>
>
> --
>
> Grant Birchmeier
>
> *Connamara Systems, LLC*
>
> *Made-To-Measure Trading Solutions.*
>
> Exactly what you need. No more. No less.
>
> http://connamara.com
> Simone Cavallarin
> T. +44 203 002 1866 <+44%2020%203002%201866> | F. +44 203 002 1856
> <+44%2020%203002%201856> | M. +44 741 387 6068 <+44%207413%20876068>
> Simone.Cavallarin at banorcapital.com <simone.cavallarin at banorcapital.com> |
> www.banorcapital.com
>
> [image: Logo]
>
> Banor Capital Limited
> 6th Floor, 16 Berkeley Street, London W1J 8DZ (UK)
>
> Banor Capital Limited is Authorised and Regulated by
> the Financial Conduct Authority. Please visit our website
> <http://www.banorcapital.com/Disclaimer.html> for important
> disclaimers/disclosures regarding Banor Capital’s services.
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20171103/922ca956/attachment.htm>


More information about the Quickfixn mailing list