public void Initialize()
        {
            IEnumerable <IPipelineContributor> contributors = Contributors;

            _invoker = (CallGraph = _graphs.GenerateCallGraph(contributors))
                       .ToTwoPhasedMiddleware <KnownStages.IOperationResultInvocation>().Invoke;
        }
Пример #2
0
        static IEnumerable <(IPipelineMiddlewareFactory, ContributorCall)> Build(IGenerateCallGraphs callGraphGenerator, IEnumerable <IPipelineMiddlewareFactory> defaults, IEnumerable <IPipelineContributor> contributors, StartupProperties startupProperties)
        {
            foreach (var factory in defaults)
            {
                yield return(factory, null);
            }

            foreach (var contributor in callGraphGenerator
                     .GenerateCallGraph(contributors)
                     .ToDetailedMiddleware(startupProperties))
            {
                yield return(contributor);
            }
        }