internal void StartCompiling(JasperOptionsBuilder registry)
        {
            Compiling = Handling.Source.FindCalls(registry).ContinueWith(t =>
            {
                var calls = t.Result;

                if (calls != null && calls.Any())
                {
                    Graph.AddRange(calls);
                }

                Graph.Group();
                Handling.ApplyPolicies(Graph, registry.CodeGeneration);
            });
        }
Example #2
0
        internal Task CompileHandlers(JasperRegistry registry, PerfTimer timer)
        {
            return(Handling.Source.FindCalls(registry).ContinueWith(t =>
            {
                timer.Record("Compile Handlers", () =>
                {
                    var calls = t.Result;

                    if (calls != null && calls.Any())
                    {
                        Graph.AddRange(calls);
                    }

                    Graph.Group();
                    Handling.ApplyPolicies(Graph, registry.CodeGeneration);
                });
            }));
        }
Example #3
0
        internal Task CompileHandlers(JasperRegistry registry, PerfTimer timer)
        {
            return(Handling.Source.FindCalls(registry).ContinueWith(t =>
            {
                timer.Record("Compile Handlers", () =>
                {
                    var calls = t.Result;

                    if (calls != null && calls.Any())
                    {
                        Graph.AddRange(calls);
                    }
                    Graph.Add(HandlerCall.For <SubscriptionsHandler>(x => x.Handle(new SubscriptionsChanged(), null)));

                    Graph.Group();
                    Handling.ApplyPolicies(Graph);
                });
            }));
        }