logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PrefetchProfile

    Complete configuration profile for asset prefetching operations.
    Combines budget constraints and policies into a reusable configuration unit.

    Inheritance
    object
    PrefetchProfile
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.AssetPrefetcher.Domain.ValueObjects
    Assembly: Serenity.AssetPrefetcher.Domain.dll
    Syntax
    public class PrefetchProfile

    Constructors

    PrefetchProfile(string, PrefetchBudget, PrefetchPolicy)

    Initializes a new prefetch profile with the specified configuration.

    Declaration
    public PrefetchProfile(string id, PrefetchBudget budget, PrefetchPolicy policy)
    Parameters
    Type Name Description
    string id

    Unique identifier for the profile

    PrefetchBudget budget

    Budget constraints for memory and item limits

    PrefetchPolicy policy

    Policy defining strategy and eviction behavior

    Exceptions
    Type Condition
    ArgumentException

    Thrown when id is null or whitespace

    ArgumentNullException

    Thrown when budget or policy is null

    Properties

    Budget

    Declaration
    public PrefetchBudget Budget { get; }
    Property Value
    Type Description
    PrefetchBudget

    Budget constraints defining memory and item limits for this profile.

    Id

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string

    Unique identifier for this prefetch profile.

    Policy

    Declaration
    public PrefetchPolicy Policy { get; }
    Property Value
    Type Description
    PrefetchPolicy

    Policy configuration defining strategy and eviction behavior for this profile.

    Methods

    ToString()

    Returns a string representation of the prefetch profile.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Formatted string with profile information

    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved