Exemple #1
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();
        }
Exemple #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();
        }