Exemple #1
0
		static void Main(string[] commandArgs)
		{
            Library.Path = Environment.CurrentDirectory;

            if (commandArgs.Count() != 1)
            {
                ShowHelp();
                return;
            }
            Type ChosenAdvisorType;
            switch (commandArgs[0].ToLower())
            {
                case "-watcher": 
                        ChosenAdvisorType = typeof(Watcher);
                        break;
                case "-save":
                        ChosenAdvisorType = typeof(QuotesSaver);
                        break;
                default:
                    ShowHelp();
                    return;
            }


			Dictionary<int, ConnectionStrings> args = AggrConnectionStringBuilder.CreateConnectionsStrings();
            using (MultiAdviserLauncher<int> launcher = new MultiAdviserLauncher<int>(args, ChosenAdvisorType))
			{
				Console.WriteLine("Press any key to stop...");
				launcher.Start();
				Console.ReadKey();
				launcher.Stop();
			}
			Log.Shutdown();
		}
Exemple #2
0
		static void Main()
		{
			Library.Path = "<FRE>";

			//string address = "fxopentrader.staging.fxopen.org";
			//string username = "******";
			//string password = "******";

			Dictionary<int, ConnectionStrings> args = new Dictionary<int, ConnectionStrings>();
			args[1] = CreateConnectionStrings(1, 1);
			//args[11] = CreateConnectionStrings(11);


			using(MultiAdviserLauncher<int> launcher = new MultiAdviserLauncher<int>(args, typeof(MultiAdviserExample)))
			{
				launcher.Start();
				Console.ReadKey();
				launcher.Stop();
			}
		}
Exemple #3
0
        static void Main()
        {
            Library.Path = "<FRE>";

            //string address = "fxopentrader.staging.fxopen.org";
            //string username = "******";
            //string password = "******";

            Dictionary <int, ConnectionStrings> args = new Dictionary <int, ConnectionStrings>();

            args[1] = CreateConnectionStrings(1, 1);
            //args[11] = CreateConnectionStrings(11);


            using (MultiAdviserLauncher <int> launcher = new MultiAdviserLauncher <int>(args, typeof(MultiAdviserExample)))
            {
                launcher.Start();
                Console.ReadKey();
                launcher.Stop();
            }
        }
Exemple #4
0
        static void Main(string[] commandArgs)
        {
            Library.Path = Environment.CurrentDirectory;

            if (commandArgs.Count() != 1)
            {
                ShowHelp();
                return;
            }
            Type ChosenAdvisorType;

            switch (commandArgs[0].ToLower())
            {
            case "-watcher":
                ChosenAdvisorType = typeof(Watcher);
                break;

            case "-save":
                ChosenAdvisorType = typeof(QuotesSaver);
                break;

            default:
                ShowHelp();
                return;
            }


            Dictionary <int, ConnectionStrings> args = AggrConnectionStringBuilder.CreateConnectionsStrings();

            using (MultiAdviserLauncher <int> launcher = new MultiAdviserLauncher <int>(args, ChosenAdvisorType))
            {
                Console.WriteLine("Press any key to stop...");
                launcher.Start();
                Console.ReadKey();
                launcher.Stop();
            }
            Log.Shutdown();
        }