I'm trying to call
public SocketInitiator(Application application, MessageStoreFactory storeFactory, SessionSettings settings, LogFactory logFactory)
Now the second argument is an interface:
namespace QuickFix
{
public interface MessageStoreFactory
{
MessageStore Create(SessionID sessionID);
}
public class MemoryStoreFactory : MessageStoreFactory {...}
}
And I'm trying to pass it an instance of the interface:
msf1=QuickFix.MemoryStoreFactory()
init=QuickFix.Transport.SocketInitiator(osa, msf1, ss, screenlog)
but I'm getting the rather unhelpful error
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: expected MessageStoreFactory, got MemoryStoreFactory
Is there some way to identify to C#/CLR that the I have passed a Python instance of a class which implements the MessageStoreFactory instance? Or is this some other, unrelated problem?