logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAssetPrefetcherServiceFactory

    Factory interface for creating asset prefetcher service instances.
    Encapsulates the creation logic and configuration of prefetcher services.

    Namespace: Serenity.AssetPrefetcher.Application.Interfaces.Factories
    Assembly: Serenity.AssetPrefetcher.Application.dll
    Syntax
    public interface IAssetPrefetcherServiceFactory

    Methods

    CreateService(PrefetchProfile, IAssetKeyResolver, string)

    Creates a new asset prefetcher service instance with the specified configuration.

    Declaration
    IAssetPrefetcherService CreateService(PrefetchProfile profile, IAssetKeyResolver keyResolver, string name)
    Parameters
    Type Name Description
    PrefetchProfile profile

    Profile containing prefetch configuration settings

    IAssetKeyResolver keyResolver

    Optional key resolver for asset addressing (null uses default)

    string name

    Optional name for the service instance (defaults to "AssetPrefetcherService")

    Returns
    Type Description
    IAssetPrefetcherService

    Configured asset prefetcher service instance

    In this article
    © 2026 Serenity. All Rights Reserved