Ejemplo n.º 1
0
        void rebuildStore()
        {
            if (store != null)
            {
                store.Dispose();
            }

            store = (QuickFix.ODBCStore)factory.Create(sessionID);
        }
Ejemplo n.º 2
0
        public void setup()
        {
            sessionID = new QuickFix.SessionID("FIX.4.2", "SENDERCOMP", "TARGETCOMP");

            QuickFix.Dictionary config = new QuickFix.Dictionary();
            config.SetString(QuickFix.SessionSettings.CONNECTION_TYPE, "initiator");
            config.SetString(QuickFix.SessionSettings.ODBC_STORE_CONNECTION_STRING, "DSN=FIXSIM");

            settings = new QuickFix.SessionSettings();
            settings.Set(sessionID, config);
            factory = new QuickFix.ODBCStoreFactory(settings);

            store = (QuickFix.ODBCStore)factory.Create(sessionID);
        }