Table of Contents

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

uri Uri

An Uri that points towards required asset context.

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

uri Uri

An Uri that points towards required asset context.

assetContext IAssetContext

An instance of the IAssetContext that provides access to assets by specified Uri or default if the context can't be created.

Returns

bool

true if context was created successfully; otherwise false.