コード例 #1
0
        private ActionEndpointDataSource CreateDataSource(IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
        {
            var dataSource = new ActionEndpointDataSource(
                actionDescriptorCollectionProvider,
                new ActionEndpointFactory(new MockRoutePatternTransformer()));

            return(dataSource);
        }
コード例 #2
0
        private ActionEndpointDataSource CreateDataSource(IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
        {
            var dataSource = new ActionEndpointDataSource(
                actionDescriptorCollectionProvider,
                new ActionEndpointFactory(
                    new MockRoutePatternTransformer(),
                    new MvcEndpointInvokerFactory(
                        new ActionInvokerFactory(Array.Empty <IActionInvokerProvider>()))));

            return(dataSource);
        }