void rebuildStore() { if (store != null) { store.Dispose(); } store = (QuickFix.DatabaseStore)factory.Create(sessionID, new NullLog()); }
public void setup() { sessionID = new QuickFix.SessionID("FIX.4.2", "SENDERCOMP", "TARGETCOMP"); Wipe(); QuickFix.Dictionary config = new QuickFix.Dictionary(); config.SetString(QuickFix.SessionSettings.CONNECTION_TYPE, "initiator"); config.SetString(QuickFix.SessionSettings.DATABASE_STORE_CONNECTION_STRING, connectionString); settings = new QuickFix.SessionSettings(); settings.Set(sessionID, config); factory = new QuickFix.DatabaseStoreFactory(settings); settings.Set(config); store = (QuickFix.DatabaseStore)factory.Create(sessionID, new NullLog()); }