public CommandService(IFileWatchService fileWatchService, IRoutingTableService routingTableService, IStatusServices statusServices) { FileWatchService = fileWatchService; RoutingTableService = routingTableService; StatusServices = statusServices; Init(); }
public ConfigurationUpdateService(ILoggerFactory logger, IStatusServices statusSvc, IRoutingTableService routingTableService, IComponentFactory componentFactory, IPseudoDbService dbService) { DbService = dbService; StatusService = statusSvc; RoutingTableService = routingTableService; ComponentFactory = componentFactory; statusSvc.Status[typeof(ConfigurationUpdateService).Name] = ServiceStatus.Running; Log = logger.CreateLogger(nameof(ConfigurationUpdateService)); }
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IRoutingTableService routingTableService, ICommandService cmdService, IRequestResponseService responseService) { //app.ApplicationServices.GetService<X.Services.ISettingsService>().Start(cfg["configPath"]); app.ApplicationServices.GetService <R.Services.IFileWatchService>().Start("c:\\rest"); app.UseExtendedRouter(routingTableService, cmdService, responseService); }