protected BaseController(IServiceProvider serviceProvider) { contentCache = serviceProvider.GetRequiredService <IContentCache>(); rolesCache = serviceProvider.GetRequiredService <IRolesCache>(); userManager = serviceProvider.GetRequiredService <SunUserManager>(); keyGenerator = serviceProvider.GetRequiredService <CacheKeyGenerator>(); }
internal DownloadStep( Preprocessing.IStepsFactory preprocessingStepsFactory, WebViewTools.IWebViewTools webViewTools, IContentCache contentCache, PreprocessingStepParams source ) : this(preprocessingStepsFactory, webViewTools, contentCache) { this.source = source; }
public OutputCachingBehavior(IActionBehavior inner, IContentCache cache, IOutputWriter writer, IResourceHash resourceHash) { _inner = inner; _cache = cache; _writer = writer; _resourceHash = resourceHash; Invoker = x => x.Invoke(); PartialInvoker = x => x.InvokePartial(); }
public PreprocessingStepsFactory( Preprocessing.IStepsFactory preprocessingStepsFactory, WebViewTools.IWebViewTools webViewTools, IContentCache contentCache ) { this.preprocessingStepsFactory = preprocessingStepsFactory; this.webViewTools = webViewTools; this.contentCache = contentCache; }
private DownloadStep( Preprocessing.IStepsFactory preprocessingStepsFactory, WebViewTools.IWebViewTools webViewTools, IContentCache contentCache ) { this.preprocessingStepsFactory = preprocessingStepsFactory; this.webViewTools = webViewTools; this.contentCache = contentCache; }
internal DownloadStep( Preprocessing.IStepsFactory preprocessingStepsFactory, WebViewTools.IWebViewTools webViewTools, IContentCache contentCache, IReadOnlyCollection <string> ids, DateTime referenceTime, string env ) : this(preprocessingStepsFactory, webViewTools, contentCache) { source = new PreprocessingStepParams(MakeUrl(ids, referenceTime, env)); }
public ForumController(IOptions <ForumOptions> forumOptions, IAuthorizationService authorizationService, ICategoriesCache categoriesCache, IContentCache contentCache, OperationKeysContainer operationKeysContainer, IForumPresenter forumPresenter, IServiceProvider serviceProvider) : base(serviceProvider) { OperationKeys = operationKeysContainer; this.forumPresenter = forumPresenter; this.forumOptions = forumOptions.Value; this.authorizationService = authorizationService; this.categoriesCache = categoriesCache; }
public GraphQLExecutionContext( IDataLoaderContextAccessor dataLoaders, IAssetQueryService assetQuery, IAssetCache assetCache, IContentQueryService contentQuery, IContentCache contentCache, IServiceProvider serviceProvider, Context context) : base(assetQuery, assetCache, contentQuery, contentCache, serviceProvider) { this.dataLoaders = dataLoaders; Context = context.Clone(b => b .WithoutCleanup() .WithoutContentEnrichment()); }
protected QueryExecutionContext( IAssetQueryService assetQuery, IAssetCache assetCache, IContentQueryService contentQuery, IContentCache contentCache, IServiceProvider serviceProvider) { Guard.NotNull(serviceProvider); AssetQuery = assetQuery; AssetCache = assetCache; ContentQuery = contentQuery; ContentCache = contentCache; Services = serviceProvider; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, IDirectoryWrapper directoryWrapper, IHasher hasher, IContentCache bundleCache, IContentCache rawContentCache) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; this.directoryWrapper = directoryWrapper; this.hasher = hasher; bundleState = new BundleState { DebugPredicate = Configuration.Instance.DefaultDebugPredicate, ShouldRenderOnlyIfOutputFileIsMissing = false, HashKeyName = Configuration.Instance.DefaultHashKeyName, CacheInvalidationStrategy = Configuration.Instance.DefaultCacheInvalidationStrategy }; this.bundleCache = bundleCache; this.rawContentCache = rawContentCache; }
public CachingContentCollector(IContainer <T> aContainer, IContentCache <T> aCache, int aRangeSize, int aThreadCount, int aReadAheadRanges) { Assert.Check(aContainer != null); Assert.Check(aCache != null); Assert.Check(aRangeSize > 0); iRangeSize = aRangeSize; iContainer = aContainer; iDequeueScheduler = new Scheduler("ContentCollectorDequeue", aThreadCount); iDequeueScheduler.SchedulerError += iScheduler_SchedulerError; iReadAheadRanges = aReadAheadRanges; iCache = aCache; iOpened = false; iDisposed = false; iQueuedRequests = new List <RangeRequest>(); iExecutingRequests = new Dictionary <int, int>(); iQueueLock = new object(); iIsRunning = true; iRunningEvent = new ManualResetEvent(true); iDequeueScheduler.Schedule(new Scheduler.DCallback(Open)); }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDirectoryWrapper directoryWrapper, IHasher hasher, IContentCache bundleCache, IContentCache rawContentCache) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, directoryWrapper, hasher, bundleCache, rawContentCache) { }
// new style content collector - choose your cache, range size, thread count and number of chunks to read ahead at a time public static IContentCollector <upnpObject> Create(IContainer aContainer, IContentCache <upnpObject> aCache, int aRangeSize, int aThreadCount, int aReadAheadRanges) { return(new CachingContentCollector <upnpObject>(new ContainerWrapper(aContainer), aCache, aRangeSize, aThreadCount, aReadAheadRanges)); }
public Client(IClientConfiguration config, HttpClient client, IContentCache cache) { _config = config; _client = client; _cache = cache; }
public ContentService(IContentManager contentManager, IContentCache contentsCache) { _contentManager = contentManager ?? throw new ArgumentException(nameof(IContentManager)); _contentsCache = contentsCache ?? throw new ArgumentException(nameof(IContentCache)); }
public CacheSettingsManager(IOptions <CacheOptions> cacheOptions, IContentCache contentCache, DataBaseConnection db) : base(db) { this.cacheOptions = cacheOptions; this.contentCache = contentCache; }
public PublishedCacheQueryVisitor(IContentCache cache) { this.cache = cache; }
public WebContentCache(IContentCache rawContentCache, IWebContentCacheConfig config) { this.rawContentCache = rawContentCache; this.config = config; }