示例#1
0
文件: ApiHost.cs 项目: rasmus/TheBorg
        public void Start(Uri uri, PluginRegistration pluginRegistration)
        {
            _pluginApi = new PluginApi(
                pluginRegistration.PluginInformation,
                pluginRegistration.CommandDescriptions);

            pluginRegistration.RegisterHttpApi(_pluginApi);

            var apiBootstrapper = new ApiBootstrapper(pluginRegistration.GetModules());

            _nancyHost = new NancyHost(uri, apiBootstrapper);
            _nancyHost.Start();
        }
示例#2
0
        public void Start(Uri uri, PluginRegistration pluginRegistration)
        {
            _pluginApi = new PluginApi(
                pluginRegistration.PluginInformation,
                pluginRegistration.CommandDescriptions);

            pluginRegistration.RegisterHttpApi(_pluginApi);

            var apiBootstrapper = new ApiBootstrapper(pluginRegistration.GetModules());

            _nancyHost = new NancyHost(uri, apiBootstrapper);
            _nancyHost.Start();
        }