public PresenterFactory( IPresenterConstructorResolver constructorResolver, bool enableCache) { Require.NotNull(constructorResolver, nameof(constructorResolver)); _constructorResolver = enableCache ? new CachedPresenterConstructorResolver(constructorResolver) : constructorResolver; }
public CachedPresenterConstructorResolver(IPresenterConstructorResolver inner) { Require.NotNull(inner, nameof(inner)); _inner = inner; }
public PresenterFactory(IPresenterConstructorResolver constructorResolver) : this(constructorResolver, true) { }