Exemplo n.º 1
0
        public static NancyServiceModule Build()
        {
            var collector = new ServiceCollector();
            var services  = collector.Collect();

            return(new NancyServiceModule(services));
        }
Exemplo n.º 2
0
        public void Start(Uri endpoint)
        {
            var collector = new ServiceCollector();

            this.nancyHost = new NancyHosting();

            //Console.WriteLine($"Compiling services...");
            var services = collector.Collect();

            //Log(services);
            this.nancyHost.Start(endpoint, services);
        }