コード例 #1
0
        public QueryParserBenchmarks()
        {
            IJsonApiOptions options       = new JsonApiOptions();
            IResourceGraph  resourceGraph = DependencyFactory.CreateResourceGraph();

            var currentRequest = new CurrentRequest();

            currentRequest.SetRequestResource(resourceGraph.GetResourceContext(typeof(BenchmarkResource)));

            IResourceDefinitionProvider resourceDefinitionProvider = DependencyFactory.CreateResourceDefinitionProvider(resourceGraph);

            _queryParameterDiscoveryForSort = CreateQueryParameterDiscoveryForSort(resourceGraph, currentRequest, resourceDefinitionProvider, options);
            _queryParameterDiscoveryForAll  = CreateQueryParameterDiscoveryForAll(resourceGraph, currentRequest, resourceDefinitionProvider, options);
        }