internal bool IsControllerType(Type t) { if (t != (Type)null && t.IsClass && (t.IsVisible && !t.IsAbstract) && typeof(InteractiveApiControllerBase).IsAssignableFrom(t)) { return(InteractiveControllerTypeResolver.HasValidControllerName(t)); } return(false); }
public InteractiveControllerTypeCache(InteractiveControllerTypeResolver typeResolver) { _typeResolver = typeResolver; this._cache = new Lazy <Dictionary <string, ILookup <string, Type> > >(new Func <Dictionary <string, ILookup <string, Type> > >(this.InitializeCache)); }
public InteractiveControllerSelector(InteractiveControllerTypeResolver typeResolver) { _controllerInfoCache = new Lazy <ConcurrentDictionary <string, InteractiveControllerDescriptor> >(InitializeControllerInfoCache); _controllerTypeCache = new InteractiveControllerTypeCache(typeResolver); }