示例#1
0
        /// <summary>Returns all of the Middleware found in the given Assembly (my looking for public static methods decorated with [Middleware]</summary>
        public static new MiddlewareList AllFromAssembly(Assembly assembly)
        {
            var middlewares = Crack.GetMethodInfos <MiddlewareAttribute>(assembly).Select(method => new Middleware(method)).ToList();

            return(new MiddlewareList(middlewares));
        }
示例#2
0
        /// <summary>Returns all of the Command found in the given Assembly (my looking for public static methods decorated with [Command]</summary>
        public static CommandList AllFromAssembly(Assembly assembly)
        {
            var all = Crack.GetMethodInfos <CommandAttribute>(assembly).Select(method => new Command(method)).ToList();

            return(new CommandList(all));
        }
示例#3
0
        /// <summary>Returns all of the Application found in the given Assembly (my looking for public static methods decorated with [Application]</summary>
        public static ApplicationList AllFromAssembly(Assembly assembly)
        {
            var all = Crack.GetMethodInfos <ApplicationAttribute>(assembly).Select(method => new Application(method)).ToList();

            return(new ApplicationList(all));
        }