Initialize() public method

public Initialize ( ) : Task
return Task
示例#1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Started VisualMutator.Console with params: " + args.MakeString());

            if (args.Length >= 5)
            {
                var parser = new CommandLineParser();
                if (Parser.Default.ParseArguments(args, parser))
                {
                    var connection = new EnvironmentConnection(parser);
                    var boot       = new ConsoleBootstrapper(connection, parser);
                    boot.Initialize().GetAwaiter().GetResult();
                }
                else
                {
                    //
                    // var str = options.LastParserState.Errors.Select(a=>a.ToString()).Aggregate((a, b) => a.ToString() + "n" + b.ToString());
                    Console.WriteLine("Invalid params string in options.: " + args);
                }
            }
            else
            {
                Console.WriteLine("Too few parameters.");
            }
        }
示例#2
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Started VisualMutator.Console with params: " + args.MakeString());

            if (args.Length >= 5)
            {
                var parser = new CommandLineParser();
                parser.ParseFrom(args);
                var connection = new EnvironmentConnection(parser);
                var boot       = new ConsoleBootstrapper(connection, parser);
                boot.Initialize().Wait();
            }
            else
            {
                Console.WriteLine("Too few parameters.");
            }
        }
示例#3
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Started VisualMutator.Console with params: "+ args.MakeString());

            if (args.Length >= 5)
            {
                var parser = new CommandLineParser();
                parser.ParseFrom(args);
                var connection = new EnvironmentConnection(parser);
                var boot = new ConsoleBootstrapper(connection, parser);
                boot.Initialize().Wait();
            }
            else
            {
                Console.WriteLine("Too few parameters.");
            }
        }