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 IMediaBlockResourceResolverMethods
Resolve(string, Type)
Resolves a logical resource id into a live object.
object Resolve(string resourceId, Type targetType)Parameters
resourceIdstring-
The stable logical resource id stored in the document.
targetTypeType-
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.