private TreeRouter GetTreeRouter() { var actions = _actionDescriptorCollectionProvider.ActionDescriptors; // This is a safe-race. We'll never set router back to null after initializing // it on startup. if (_router == null || _router.Version != actions.Version) { _router = BuildRoute(actions); } return(_router); }
private TreeRouter GetTreeRouter() { var actions = _actionDescriptorCollectionProvider.ActionDescriptors; // This is a safe-race. We'll never set router back to null after initializing // it on startup. if (_router == null || _router.Version != actions.Version) { var builder = _services.GetRequiredService <TreeRouteBuilder>(); AddEntries(builder, actions); _router = builder.Build(actions.Version); } return(_router); }
internal TreeRouterMatcher(TreeRouter inner) { _inner = inner; }
private TreeRouterMatcher(TreeRouter inner) { _inner = inner; }
private TreeRouter GetTreeRouter() { var actions = _actionDescriptorCollectionProvider.ActionDescriptors; // This is a safe-race. We'll never set router back to null after initializing // it on startup. if (_router == null || _router.Version != actions.Version) { _router = BuildRoute(actions); } return _router; }