Example #1
0
        static int Main(string[] args)
        {
            Console.Write("NSwag command line tool for .NET Core, ");
            var processor = new NSwagCommandProcessor(typeof(NSwagDocument).GetTypeInfo().Assembly, new CoreConsoleHost());

            return(processor.Process(args));
        }
Example #2
0
        private static Task <int> Main(string[] args)
        {
            Console.Write("NSwag command line tool for .NET Core " + RuntimeUtilities.CurrentRuntime + ", ");
            var processor = new NSwagCommandProcessor(new CoreConsoleHost());

            return(processor.ProcessAsync(args));
        }
Example #3
0
        static int Main(string[] args)
        {
            Console.Write("NSwag command line tool for .NET 4.6.1+ " + RuntimeUtilities.CurrentRuntime + ", ");
            var processor = new NSwagCommandProcessor(new ConsoleHost());

            return(processor.Process(args));
        }