public void Run()
        {
            this.Log.Debug("Collecting resources");
            IResourceCollector resourceCollector = new AssemblyResourceCollector(typeof(Program).Assembly);
            IEnumerable<CollectedResource> resources = resourceCollector.Collect();

            this.Log.Debug("Creating webservice");
            this.Service = new WebService(resources);
            //this.Service.ConfigureLogging(Common.Logging.LogManager.GetLogger(this.GetType()));
            //this.Service.Configure("localhost", "127.0.0.1", 80);

            this.Service.Start();
        }
 public RESTSecheduler(WebService service)
 {
     this._service = service;
 }