Run() public méthode

public Run ( string args ) : int
args string
Résultat int
Exemple #1
0
        /// <summary>Runs StorageSample.exe with the provided arguments</summary>
        /// <returns>The console output of this program</returns>
        public static ConsoleOutput Run(params string[] arguments)
        {
            Console.Write("QuickStart.exe ");
            Console.WriteLine(string.Join(" ", arguments));

            using (var output = new StringWriter())
            {
                QuickStart quickStart    = new QuickStart(output);
                var        consoleOutput = new ConsoleOutput()
                {
                    ExitCode = quickStart.Run(arguments),
                    Stdout   = output.ToString()
                };
                Console.Write(consoleOutput.Stdout);
                return(consoleOutput);
            }
        }
Exemple #2
0
        public static int Main(string[] args)
        {
            QuickStart quickStart = new QuickStart();

            return(quickStart.Run(args));
        }
 public static int Main(string[] args)
 {
     QuickStart quickStart = new QuickStart();
     return quickStart.Run(args);
 }