Table of Contents

Interface IMediaBlockResourceResolver

Namespace
VisioForge.Core.MediaBlocks.Catalog
Assembly
VisioForge.Core.dll

Resolves the logical resource ids stored in a JSON document into live objects the host owns: video views, .NET streams, callbacks and delegates, runtime device handles and other objects that cannot be represented in JSON. A missing resource must surface as an error that blocks materialization, never as a silently skipped dependency.

public interface IMediaBlockResourceResolver

Methods

Resolve(string, Type)

Resolves a logical resource id into a live object.

object Resolve(string resourceId, Type targetType)

Parameters

resourceId string

The stable logical resource id stored in the document.

targetType Type

The type the block expects.

Returns

object

The resolved object; must be assignable to targetType.

Exceptions

MediaBlocksResourceNotFoundException

Thrown when no resource with this id is registered or it has the wrong type.