Table of Contents

Class GmlPortrayalCatalogueBase.FetchRuleFallbackXmlResolver

Namespace
EncDotNet.S100.Portrayals
Assembly
EncDotNet.S100.Portrayals.dll

Resolver that falls back to FetchRuleAsync(string, CancellationToken) for unregistered sub-templates. Used by specs (S-125, S-421) whose upstream PCs reference sub-templates not listed as rule file entries.

protected sealed class GmlPortrayalCatalogueBase.FetchRuleFallbackXmlResolver : GmlPortrayalCatalogueBase.AssetSourceXmlResolver
Inheritance
GmlPortrayalCatalogueBase.FetchRuleFallbackXmlResolver
Inherited Members

Constructors

FetchRuleFallbackXmlResolver(PortrayalCatalogueProvider, IReadOnlyDictionary<string, byte[]>)

Creates a resolver with fetch-rule fallback.

public FetchRuleFallbackXmlResolver(PortrayalCatalogueProvider provider, IReadOnlyDictionary<string, byte[]> registeredBytes)

Parameters

provider PortrayalCatalogueProvider
registeredBytes IReadOnlyDictionary<string, byte[]>

Methods

ResolveUnregistered(Uri, string)

Called when the requested file is not a registered rule file. Returns null by default. Override to provide fallback resolution (e.g. via FetchRuleAsync(string, CancellationToken)).

protected override object? ResolveUnregistered(Uri absoluteUri, string fileName)

Parameters

absoluteUri Uri
fileName string

Returns

object