AutoRun() 공개 메소드

public AutoRun ( ) : void
리턴 void
예제 #1
0
파일: Program.cs 프로젝트: rhwy/NancyRabbit
        static void Main(string[] args)
        {
            var endpoint = DefaultEndpoint;
            var watchFolder = new DirectoryInfo(DefaultWatchFolder).FullName;
            if (args.Length >= 1)
            {
                watchFolder = new DirectoryInfo(args[0]).FullName;
            }
            if (args.Length >= 2)
            {
                endpoint = args[1];
            }

            var asm = Assembly.GetExecutingAssembly();
            var location = new FileInfo(asm.Location).Directory.FullName;
            var host = new NancyAutoHost(endpoint, watchFolder, location);
            host.AutoRun();
            Console.Read();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var endpoint    = DefaultEndpoint;
            var watchFolder = new DirectoryInfo(DefaultWatchFolder).FullName;

            if (args.Length >= 1)
            {
                watchFolder = new DirectoryInfo(args[0]).FullName;
            }
            if (args.Length >= 2)
            {
                endpoint = args[1];
            }

            var asm      = Assembly.GetExecutingAssembly();
            var location = new FileInfo(asm.Location).Directory.FullName;
            var host     = new NancyAutoHost(endpoint, watchFolder, location);

            host.AutoRun();
            Console.Read();
        }