Interface IAssetContextFactory
- Namespace
- Icy.Assets
- Assembly
- IcyUI.dll
Represents a factory that helps with creation for the specialized IAssetContext instances.
public interface IAssetContextFactory
- Extension Methods
Methods
Create(Uri)
Creates an asset context with specified Uri instance.
IAssetContext Create(Uri uri)
Parameters
Returns
- IAssetContext
An instance of the IAssetContext that provides access to assets by specified Uri.
TryCreate(Uri, out IAssetContext?)
Tries to create an asset context with specified Uri instance.
bool TryCreate(Uri uri, out IAssetContext? assetContext)
Parameters
uriUriAn Uri that points towards required asset context.
assetContextIAssetContextAn instance of the IAssetContext that provides access to assets by specified Uri or default if the context can't be created.