Пример #1
0
        public static int Main(string[] args)
        {
            HostConfiguration hostConfigs = new HostConfiguration();

            hostConfigs.UrlReservations.CreateAutomatically = true;
            RegisterContainer();

            Uri uri  = new Uri("http://localhost/api/");
            var host = new NancyHost(hostConfigs, uri);

            host.Start();
            Console.ReadKey();

            var parser = new OptionsParser();

            return(parser.ParseOptionArguments(args));
        }
Пример #2
0
        public static int Main(string[] args)
        {
            var parser = new OptionsParser();

            return(parser.ParseOptionArguments(args));
        }