Ejemplo n.º 1
0
        private IEnumerable<ActionCall> findActions()
        {
            var source = new ActionSource();

            PackageRegistry.PackageAssemblies.Each(a => source.Applies.ToAssembly(a));
            source.IncludeTypesNamed(name => name.EndsWith("FubuDiagnostics"));

            return source.As<IActionSource>().FindActions(null);
        }
Ejemplo n.º 2
0
        private Task<ActionCall[]> findActions(BehaviorGraph graph)
        {
            var source = new ActionSource();

            source.Applies.ToAssemblyContainingType<IActionBehavior>();
            graph.PackageAssemblies.Each(a => source.Applies.ToAssembly(a));
            source.IncludeTypesNamed(name => name.EndsWith("FubuDiagnostics"));
            source.IncludeTypes(type => type == typeof(FubuDiagnosticsEndpoint));

            return source.As<IActionSource>().FindActions(null);
        }