Struct CacheStatusInfo
Immutable value object containing cache status information for an asset. Provides current state and size information for cache queries.
Inherited Members
Namespace: Serenity.AssetPrefetcher.Domain.ValueObjects
Assembly: Serenity.AssetPrefetcher.Domain.dll
Syntax
public readonly struct CacheStatusInfo
Constructors
CacheStatusInfo(bool, bool, int)
Initializes a new cache status info with the specified values.
Declaration
public CacheStatusInfo(bool isReady, bool isLoading, int approxSizeBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isReady | Whether the asset is ready for use |
| bool | isLoading | Whether the asset is currently loading |
| int | approxSizeBytes | Approximate size in bytes |
Fields
ApproxSizeBytes
Declaration
public readonly int ApproxSizeBytes
Field Value
| Type | Description |
|---|---|
| int | Approximate size of the asset in bytes (may be estimated). |
IsLoading
Declaration
public readonly bool IsLoading
Field Value
| Type | Description |
|---|---|
| bool | Indicates whether the asset is currently being loaded into cache. |
IsReady
Declaration
public readonly bool IsReady
Field Value
| Type | Description |
|---|---|
| bool | Indicates whether the asset is fully loaded and ready for use. |