public ConfigurationNancyModule(IConfigurationStoreService configStoreService)
        {
            _configStoreService = configStoreService;

            Get[RouteRegistry.Api.Configuration.GetConfigs.Name,
                RouteRegistry.Api.Configuration.GetConfigs.Template,
                true] = GetConfigs;
            Get[RouteRegistry.Api.Configuration.GetConfigForVersion.Name,
                RouteRegistry.Api.Configuration.GetConfigForVersion.Template,
                true] = GetConfigForVersion;
            Put[RouteRegistry.Api.Configuration.AddNewConfiguration.Name,
                RouteRegistry.Api.Configuration.AddNewConfiguration.Template,
                true] = AddNewConfiguration;
            Put[RouteRegistry.Api.Configuration.AddNewValueToConfiguration.Name,
                RouteRegistry.Api.Configuration.AddNewValueToConfiguration.Template,
                true] = AddNewValueToConfiguration;
            Post[RouteRegistry.Api.Configuration.UpdateValueOnConfiguration.Name,
                 RouteRegistry.Api.Configuration.UpdateValueOnConfiguration.Template,
                 true] = UpdateValueOnConfiguration;
            Delete[RouteRegistry.Api.Configuration.DeleteValueFromConfiguration.Name,
                   RouteRegistry.Api.Configuration.DeleteValueFromConfiguration.Template,
                   true] = DeleteValueFromConfiguration;
            Delete[RouteRegistry.Api.Configuration.DeleteConfiguration.Name,
                   RouteRegistry.Api.Configuration.DeleteConfiguration.Template,
                   true] = DeleteConfiguration;
        }
        public ConfigurationAppNancyModule(IConfigurationStoreService service)
        {
            _service = service;

            Get[RouteRegistry.Ui.Configuration.GetHome, true]          = GetConfigurationList;
            Get[RouteRegistry.Ui.Configuration.GetConfiguration, true] = GetConfiguration;
        }
Exemplo n.º 3
0
 public TransportSenderWorker(IPacketManager packetManager,
                              ITransportAgentInfoService agentInfoService,
                              IConfigurationStoreService configurationStore,
                              string url,
                              TransportSettings settings,
                              ISendStateStore sendStateStore)
     : this(packetManager, agentInfoService, configurationStore, url, new ConstantTransportSettingsProvider(settings), sendStateStore)
 {
 }
        public ConfigurationNancyModuleTests(
            IConfigurationStoreService configurationStoreService)
        {
            _configurationStoreService = configurationStoreService;

            _browser = new Browser(configurator =>
            {
                configurator.Module <ConfigurationNancyModule>();
                configurator.Dependency(_configurationStoreService);
            });
            _fixture = new Fixture();
            _fixture.Customizations.Add(new VersionBuilder());
        }
Exemplo n.º 5
0
        public TransportSenderWorker(IPacketManager packetManager,
                                     ITransportAgentInfoService agentInfoService,
                                     IConfigurationStoreService configurationStore,
                                     string url,
                                     TransportSettings settings,
                                     ISendStateStore sendStateStore)
        {
#if NETSTANDARD2_0
            this.httpClient = new HttpClient();
#endif
            this.packetManager      = packetManager;
            this.agentInfoService   = agentInfoService;
            this.configurationStore = configurationStore;
            this.url               = url;
            this.settings          = settings;
            this.sendStateStore    = sendStateStore;
            this.hashAlgorithmFunc = (() => null);
        }
 public ConfigurationsByteArraysToFilesConverter(IConfigurationStoreService configurationStore)
 {
     this.configurationStore = configurationStore;
 }
 public TransportResponseConfigurationsConverter(IConfigurationStoreService configurationStore)
 {
     this.configurationStore = configurationStore;
 }