/// <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)); }
/// <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)); }
/// <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)); }