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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 internal TreeRouterMatcher(TreeRouter inner)
 {
     _inner = inner;
 }
 private TreeRouterMatcher(TreeRouter inner)
 {
     _inner = inner;
 }
Beispiel #5
0
        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;
        }