Interface IPrefetchPolicyRegistry
Definition interface for a registry of prefetch policy profiles.
Lets Application-layer code look up a profile by ID without depending on the
concrete Unity ScriptableObject registry type.
Extends IFoundationSettings for the toolkit identity contract, since a
registry is itself a designer-created asset (CreateAssetMenu).
Namespace: Serenity.AssetPrefetcher.Application.Interfaces
Assembly: Serenity.AssetPrefetcher.Application.dll
Syntax
public interface IPrefetchPolicyRegistry : IFoundationSettings
Methods
Get(string)
Retrieves a prefetch profile by its unique identifier.
Declaration
PrefetchProfile Get(string profileId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | profileId | The profile ID to look up |
Returns
| Type | Description |
|---|---|
| PrefetchProfile | The matching PrefetchProfile value object, or null if not found |
GetDefault()
Retrieves the default profile (profile with ID "default").
Declaration
PrefetchProfile GetDefault()
Returns
| Type | Description |
|---|---|
| PrefetchProfile | The default PrefetchProfile value object, or null if not found |