Esempio n. 1
0
 public FixServerFacade(ClientApplication app,
                        IExecIDGenerator execIDGenerator,
                        IFixMessageGenerator fixMessageGenerator)
 {
     _app = app;
     _execIDGenerator = execIDGenerator;
     _fixMessageGenerator = fixMessageGenerator;
     _app.Fix44ExecReportEvent += HandleExecutionReport;
     _app.LogonEvent += HandleLogon;
     _app.LogoutEvent += HandleLogout;
 }
Esempio n. 2
0
 public FixServerFacade(ClientApplication app,
                        IExecIDGenerator execIDGenerator,
                        IFixMessageGenerator fixMessageGenerator)
 {
     _app                       = app;
     _execIDGenerator           = execIDGenerator;
     _fixMessageGenerator       = fixMessageGenerator;
     _app.Fix44ExecReportEvent += HandleExecutionReport;
     _app.LogonEvent           += HandleLogon;
     _app.LogoutEvent          += HandleLogout;
 }
        public static ClientApplication Create(string configFilepath,
                                               IFixStrategy strategy,
                                               IFixMessageGenerator messageGenerator,
                                               IMessageSink messageSink)
        {
            // FIX app settings and related
            var settings = new QuickFix.SessionSettings(configFilepath);
            strategy.SessionSettings = settings;

            // FIX application setup
            var storeFactory = new QuickFix.FileStoreFactory(settings);
            var logFactory = new QuickFix.FileLogFactory(settings);
            var app = new ClientApplication(settings, messageGenerator, strategy, messageSink);

            var initiator =
                new QuickFix.Transport.SocketInitiator(app, storeFactory, settings, logFactory);
            app.Initiator = initiator;

            return app;
        }
Esempio n. 4
0
        public static ClientApplication Create(string configFilepath,
                                               IFixStrategy strategy,
                                               IFixMessageGenerator messageGenerator,
                                               IMessageSink messageSink)
        {
            // FIX app settings and related
            var settings = new QuickFix.SessionSettings(configFilepath);

            strategy.SessionSettings = settings;

            // FIX application setup
            var storeFactory = new QuickFix.FileStoreFactory(settings);
            var logFactory   = new QuickFix.FileLogFactory(settings);
            var app          = new ClientApplication(settings, messageGenerator, strategy, messageSink);

            var initiator =
                new QuickFix.Transport.SocketInitiator(app, storeFactory, settings, logFactory);

            app.Initiator = initiator;

            return(app);
        }