protected override void Init() { this.application = (QuickFIX42Application) this.CreateApplicationInstance(); Dictionary dictionary = new Dictionary(); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2820), BeAEwTZGlZaeOmY5cm.J00weU3cM6(2852)); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2874), this.HeartBtInt); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2898), this.StartTime.ToString()); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2920), this.EndTime.ToString()); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2938), this.ReconnectInterval); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(2976), this.BeginString); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3002), this.DataDictionary); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3034), this.FileStorePath); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3064), this.FileLogPath); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3090), this.CheckLatency); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3118), this.MaxLatency); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3142), this.SendRedundantResendRequests); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3200), this.ResetOnLogout); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3230), this.ResetOnDisconnect); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3268), this.RefreshOnLogon); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3300), this.TcpNoDelay); this.OnDefaultsSessionSettingsCreated(dictionary); Dictionary settings1 = (Dictionary) null; if (this.PriceSessionEnabled) { settings1 = new Dictionary(); settings1.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3330), this.PriceSocketConnectHost); settings1.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3368), this.PriceSocketConnectPort); settings1.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3406), this.PriceFileStorePath); this.OnPriceSessionSettingsCreated(settings1); } Dictionary settings2 = (Dictionary) null; if (this.OrderSessionEnabled) { settings2 = new Dictionary(); settings2.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3436), this.OrderSocketConnectHost); settings2.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3474), this.OrderSocketConnectPort); settings2.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(3512), this.OrderFileStorePath); this.OnOrderSessionSettingsCreated(settings2); } SessionID sessionID1 = this.PriceSessionEnabled ? new SessionID(this.BeginString, this.PriceSenderCompID, this.PriceTargetCompID) : (SessionID) null; SessionID sessionID2 = this.OrderSessionEnabled ? new SessionID(this.BeginString, this.OrderSenderCompID, this.OrderTargetCompID) : (SessionID) null; this.sessionSettings = new SessionSettings(); this.sessionSettings.set(dictionary); if (this.PriceSessionEnabled) this.sessionSettings.set(sessionID1, settings1); if (this.OrderSessionEnabled) this.sessionSettings.set(sessionID2, settings2); this.storeFactory = (MessageStoreFactory) new FileStoreFactory(this.sessionSettings); this.logFactory = (LogFactory) new FileLogFactory(this.sessionSettings); this.messageFactory = (MessageFactory) new DefaultMessageFactory(); (this.application as QuickFIX42CommonApplication).adf1ZbrcY(sessionID1, sessionID2); }
protected override void Init() { Dictionary defaults = new Dictionary(); defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(222), nvcneRd3YWS84l4984.Ey6KSwFglw(254)); defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(276), this.StartTime.ToString()); defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(298), this.EndTime.ToString()); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(316), this.SendRedundantResendRequests); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(374), this.ResetOnLogout); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(404), this.ResetOnDisconnect); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(442), this.RefreshOnLogon); defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(474), this.DataDictionary); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(506), this.CheckLatency); defaults.setLong(nvcneRd3YWS84l4984.Ey6KSwFglw(534), (int) this.MaxLatency.TotalSeconds); defaults.setLong(nvcneRd3YWS84l4984.Ey6KSwFglw(558), (int) this.ReconnectInterval.TotalSeconds); defaults.setLong(nvcneRd3YWS84l4984.Ey6KSwFglw(596), (int) this.HeartBtInt.TotalSeconds); defaults.setBool(nvcneRd3YWS84l4984.Ey6KSwFglw(620), this.PersistMessages); if (this.PersistMessages) defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(654), this.FileStorePath); if (this.LoggingEnabled) defaults.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(684), this.FileLogPath); Dictionary settings = new Dictionary(); settings.setString(nvcneRd3YWS84l4984.Ey6KSwFglw(710), this.SocketConnectHost); settings.setLong(nvcneRd3YWS84l4984.Ey6KSwFglw(748), (int) this.SocketConnectPort); SessionID sessionID = new SessionID(nvcneRd3YWS84l4984.Ey6KSwFglw(786), this.SenderCompID, this.TargetCompID); this.sessionSettings = new SessionSettings(); this.sessionSettings.set(defaults); this.sessionSettings.set(sessionID, settings); this.storeFactory = this.PersistMessages ? (MessageStoreFactory) new FileStoreFactory(this.sessionSettings) : (MessageStoreFactory) new MemoryStoreFactory(); this.logFactory = this.LoggingEnabled ? (LogFactory) new FileLogFactory(this.sessionSettings) : (LogFactory) new NullLogFactory(); this.messageFactory = (MessageFactory) new DefaultMessageFactory(); this.application = (QuickFIX42Application) new mWYFJZ8xKCsaXEKF78(this); }
protected override void Init() { this.application = (QuickFIX43Application) this.CreateApplicationInstance(); Dictionary dictionary = new Dictionary(); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4682), BeAEwTZGlZaeOmY5cm.J00weU3cM6(4714)); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4736), this.HeartBtInt); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4760), this.StartTime.ToString()); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4782), this.EndTime.ToString()); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4800), this.ReconnectInterval); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4838), this.BeginString); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4864), this.DataDictionary); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4896), this.FileStorePath); dictionary.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4926), this.FileLogPath); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4952), this.CheckLatency); dictionary.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(4980), this.MaxLatency); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5004), this.ResetOnLogout); dictionary.setBool(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5034), this.ResetOnDisconnect); this.OnDefaultsSessionSettingsCreated(dictionary); Dictionary settings1 = (Dictionary) null; if (this.PriceSessionEnabled) { settings1 = new Dictionary(); settings1.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5072), this.PriceSocketConnectHost); settings1.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5110), this.PriceSocketConnectPort); settings1.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5148), this.PriceFileStorePath); this.OnPriceSessionSettingsCreated(settings1); } Dictionary settings2 = (Dictionary) null; if (this.OrderSessionEnabled) { settings2 = new Dictionary(); settings2.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5178), this.OrderSocketConnectHost); settings2.setLong(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5216), this.OrderSocketConnectPort); settings2.setString(BeAEwTZGlZaeOmY5cm.J00weU3cM6(5254), this.OrderFileStorePath); this.OnOrderSessionSettingsCreated(settings2); } SessionID sessionID1 = this.PriceSessionEnabled ? new SessionID(this.BeginString, this.PriceSenderCompID, this.PriceTargetCompID) : (SessionID) null; SessionID sessionID2 = this.OrderSessionEnabled ? new SessionID(this.BeginString, this.OrderSenderCompID, this.OrderTargetCompID) : (SessionID) null; this.sessionSettings = new SessionSettings(); this.sessionSettings.set(dictionary); if (this.PriceSessionEnabled) this.sessionSettings.set(sessionID1, settings1); if (this.OrderSessionEnabled) this.sessionSettings.set(sessionID2, settings2); this.storeFactory = (MessageStoreFactory) new FileStoreFactory(this.sessionSettings); this.logFactory = (LogFactory) new FileLogFactory(this.sessionSettings); this.messageFactory = (MessageFactory) new DefaultMessageFactory(); (this.application as QuickFIX43CommonApplication).zWmEpDbll(sessionID1, sessionID2); }