Beispiel #1
0
        public void Run()
        {
            List <IServerModule>  modules  = new List <IServerModule>();
            List <IServerHandler> handlers = new List <IServerHandler>(
                new DataHandler(_data),
                new ApiHandler(_endpoints)
                );

            _runtime = new ServerRuntime(_options.Path, modules, handlers);
            _runtime.Run(_options.Port);
        }