Class PrefetchRequest
Represents a request to prefetch a specific asset with associated metadata.
Contains all necessary information for scheduling and executing asset prefetch operations.
Inherited Members
Namespace: Serenity.AssetPrefetcher.Domain.Entities
Assembly: Serenity.AssetPrefetcher.Domain.dll
Syntax
public class PrefetchRequest
Constructors
PrefetchRequest(AssetKey, PrefetchPriority, string, DateTime?)
Initializes a new prefetch request with the specified parameters.
Declaration
public PrefetchRequest(AssetKey key, PrefetchPriority priority, string contextId, DateTime? deadline = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetKey | key | The asset key to prefetch |
| PrefetchPriority | priority | The priority level for the request |
| string | contextId | The context identifier for the request |
| DateTime? | deadline | Optional deadline for completion |
Properties
AssetKey
Declaration
public AssetKey AssetKey { get; }
Property Value
| Type | Description |
|---|---|
| AssetKey | The unique key identifying the asset to be prefetched. |
ContextId
Declaration
public string ContextId { get; }
Property Value
| Type | Description |
|---|---|
| string | The context identifier associating this request with a specific usage scenario. |
Deadline
Declaration
public DateTime? Deadline { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? | Optional deadline by which this asset should be prefetched. |
Priority
Declaration
public PrefetchPriority Priority { get; }
Property Value
| Type | Description |
|---|---|
| PrefetchPriority | The priority level for this prefetch request. |