Exemplo n.º 1
0
        private ActionEndpointDataSource CreateDataSource(IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
        {
            var dataSource = new ActionEndpointDataSource(
                actionDescriptorCollectionProvider,
                new ActionEndpointFactory(new MockRoutePatternTransformer()));

            return(dataSource);
        }
        private ActionEndpointDataSource CreateDataSource(IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
        {
            var dataSource = new ActionEndpointDataSource(
                actionDescriptorCollectionProvider,
                new ActionEndpointFactory(
                    new MockRoutePatternTransformer(),
                    new MvcEndpointInvokerFactory(
                        new ActionInvokerFactory(Array.Empty <IActionInvokerProvider>()))));

            return(dataSource);
        }