<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">If it works for you, go for it.  I would say there is no "suggested" way to do what you're doing.  I doubt this class was designed with extension in mind.  (IMessageFactory has multiple internal implementing classes, but I suspect the original writers probably didn't think developers would extend it externally.)</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">The method was obsoleted probably just to reduce the public interface, since the engine doesn't use it anymore.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">To help inform future decision making-- What's the reason you needed to make a custom IMessageFactory?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 5:53 AM Jann Roder <<a href="mailto:j.roder@winton.com">j.roder@winton.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-8797868537664063240WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal">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:
<span style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> DefaultMessageFactory(Enumerable.Empty<Assembly>())
</span><span style="font-size:9.5pt;color:black">.</span><span style="color:black"> I’m surprised that the constructor that takes a list of factories is obsolete.</span> In any case, I’m wondering if I’m using it right.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">PS: The search feature on the mailing list seems to be broken<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Jann<u></u><u></u></p>
</div>
<br>
<br>
<p style="color:rgb(128,128,128);font-family:Calibri;font-size:10pt">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. </p>
<p style="color:rgb(128,128,128);font-family:Calibri;font-size:10pt">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. </p>
<p style="color:rgb(128,128,128);font-family:Calibri;font-size:10pt">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. </p>
<p style="color:rgb(128,128,128);font-family:Calibri;font-size:10pt">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
<a href="https://www.winton.com/en/privacy-notice" target="_blank">privacy notice.</a> </p>
</div>

_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>

<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span>