{{Quickfixn}} How to implement a custom message factory

Jann Roder j.roder at winton.com
Fri Apr 3 03:52:57 PDT 2020


Hi,
I have implemented a custom message factory (IMessageFactory). For the method that returns a Group I just want to fall back to the default implementation. To do this I instantiate the DefaultMessageFactory in my message factory. This worked fine until I made my message factory public (from internal). Now I get a stack overflow because the DefaultMessageFactory has magic to instantiate all public MessageFactories it finds. I was able to fix it by using this constructor: new DefaultMessageFactory(Enumerable.Empty<Assembly>()) . I'm surprised that the constructor that takes a list of factories is obsolete. In any case, I'm wondering if I'm using it right.

PS: The search feature on the mailing list seems to be broken

Thanks,
Jann



Winton Capital Management Limited ("Winton") is a limited company registered in England and Wales with its registered offices at 20 Old Bailey, London, EC4M 7AN (Registered Company No. 3311531). Winton is authorised and regulated by the Financial Conduct Authority in the United Kingdom, registered as an investment adviser with the US Securities and Exchange Commission, registered with the US Commodity Futures Trading Commission and a member of the National Futures Association in the United States.

This communication, including any attachments, is confidential and may be privileged. This email is for use by the intended recipient only. If you receive it in error, please notify the sender and delete it. You should not copy or disclose all or any part of this email.

This email does not constitute an offer or solicitation and nothing contained in this email constitutes, and should not be construed as, investment advice. Prospective investors should request offering materials and consult their own advisers with respect to investment decisions and inform themselves as to applicable legal requirements, exchange control regulations and taxes in the countries of their citizenship, residence or domicile. Past performance is not indicative of future results.

Winton takes reasonable steps to ensure the accuracy and integrity of its communications, including emails. However Winton accepts no liability for any materials transmitted. Emails are not secure and cannot be guaranteed to be error free. Winton handles personal information in accordance with its privacy notice.<https://www.winton.com/en/privacy-notice>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200403/37a437da/attachment.html>


More information about the Quickfixn mailing list