コード例 #1
0
ファイル: OrderTest.cs プロジェクト: teopeurt/quickfix
    public void SetUp()
    {
        application = new ApplicationImpl();
        SessionSettings     settings            = new SessionSettings("c:\\development\\quickfix\\test\\cfg\\at_client.cfg");
        MessageStoreFactory messageStoreFactory =
            new MemoryStoreFactory();

        QuickFix42.MessageFactory messageFactory = new QuickFix42.MessageFactory();

        initiator = new SocketInitiator
                        (application, messageStoreFactory, settings, messageFactory);

        server = new Process();
        server.StartInfo.FileName  = "c:\\development\\quickfix\\test\\debug\\at\\at";
        server.StartInfo.Arguments = "-f c:\\development\\quickfix\\test\\cfg\\at.cfg";
        server.Start();

        Thread quickFixThread = new Thread(RunThread);

        quickFixThread.Start();

        for (int i = 0; i < 50; ++i)
        {
            if (application.isLoggedOn())
            {
                break;
            }
            Thread.Sleep(1000);
        }
        if (!application.isLoggedOn())
        {
            throw new Exception();
        }
    }
コード例 #2
0
ファイル: OrderTest.cs プロジェクト: jaubrey/quickfix
    public void SetUp()
    {
        application = new ApplicationImpl();
        SessionSettings settings = new SessionSettings( "c:\\development\\quickfix\\test\\cfg\\at_client.cfg" );
        MessageStoreFactory messageStoreFactory =
            new MemoryStoreFactory();
        QuickFix42.MessageFactory messageFactory = new QuickFix42.MessageFactory();

        initiator = new SocketInitiator
            (application, messageStoreFactory, settings, messageFactory);

        server = new Process();
        server.StartInfo.FileName = "c:\\development\\quickfix\\test\\debug\\at\\at";
        server.StartInfo.Arguments = "-f c:\\development\\quickfix\\test\\cfg\\at.cfg";
        server.Start();

        Thread quickFixThread = new Thread(RunThread);
        quickFixThread.Start();

        for(int i = 0;i < 50;++i)
        {
            if(application.isLoggedOn())
            {
                break;
            }
            Thread.Sleep(1000);
        }
        if(!application.isLoggedOn())
        {
            throw new Exception();
        }
    }
コード例 #3
0
        public static void Main(string[] args)
        {
            IApplication app = new ApplicationImpl();
            IDictionary <string, string> results = app.RunApplicationAndGetResults();

            // Print out the results
            PrintResults(results);
        }
コード例 #4
0
        public static void Main(string[] args)
        {
            IApplication app = new ApplicationImpl();

            app.RunPreApplication();
            app.RunApplication();

            // Print out the results
            PrintResults();
        }