private static TypePool getTypes()
        {
            var types = new TypePool(FubuRegistry.FindTheCallingAssembly());

            var filter = new CompositeFilter <Assembly>();

            filter.Excludes.Add(a => a.IsDynamic);
            filter.Excludes.Add(a => types.HasAssembly(a));
            filter.Includes += (t => true);

            types.AddSource(() => AppDomain.CurrentDomain.GetAssemblies().Where(filter.MatchesAll));

            return(types);
        }
Esempio n. 2
0
 public AppliesToExpression ToThisAssembly()
 {
     return(ToAssembly(FubuRegistry.FindTheCallingAssembly()));
 }
        /// <summary>
        /// This directs the routing conventions to ignore the default
        /// assembly namespace when creating a route
        /// </summary>
        /// <returns></returns>
        public RouteConventionExpression RootAtAssemblyNamespace()
        {
            var assembly = FubuRegistry.FindTheCallingAssembly();

            return(IgnoreNamespaceText(assembly.GetName().Name));
        }