static FilteringRoutingServiceTest() { RouteStore = new RouteStore(new Dictionary <string, RouterConfig> { { "hub1", new RouterConfig(AllEndpoints, AllRoutes) } }); }
public ChangeRoutingStrategy(IRouteStore store, IServiceProvider provider, IDefaultRouting <IService> defaultRouting) { _store = store; _provider = provider; _defaultRouting = defaultRouting; }
public RoutingHost(ILoggerFactory logger, CustomRouter router, IRouteStore store, IRouteSource source, IRoutingConfig config) { _router = router; _logger = logger?.CreateLogger <RoutingHost>(); _store = store; _source = source; _config = config; var ignore = WatchLoop(); }
public FilteringRoutingService(IRoutingService underlying, IRouteStore routeStore, INotifierFactory notifierFactory, IRouteCompiler compiler) { this.underlying = Preconditions.CheckNotNull(underlying, nameof(underlying)); this.routeStore = Preconditions.CheckNotNull(routeStore, nameof(routeStore)); this.notifierFactory = Preconditions.CheckNotNull(notifierFactory, nameof(notifierFactory)); this.compiler = Preconditions.CheckNotNull(compiler, nameof(compiler)); this.evaluators = new AtomicReference <ImmutableDictionary <string, Evaluator> >(ImmutableDictionary <string, Evaluator> .Empty); this.notifiers = new AtomicReference <ImmutableDictionary <string, INotifier> >(ImmutableDictionary <string, INotifier> .Empty); this.cts = new CancellationTokenSource(); this.closed = new AtomicBoolean(false); this.sync = new AsyncLock(); }
public FilteringRoutingService(IRoutingService underlying, IRouteStore routeStore, INotifierFactory notifierFactory) : this(underlying, routeStore, notifierFactory, RouteCompiler.Instance) { }
public ServerStatsRoute(IRouteStore store) => _store = store;
public UrlSlugRouter(IRouter target, IContentDataService <RoutablePage> dataService, IRouteStore routeStore) { this.target = target; this.dataService = dataService; this.routeStore = routeStore; }
public HealthStatsRouter(IHealthConfig config, IRouteStore store) { _config = config; Routes = new[] { _config.Route }; _store = store; }
public RouteSummary(IRouteStore routeStore) { _routeStore = routeStore; Routes = new[] { CondenserRoutes.Summary }; }