Table of Contents

Class ImportContext

Namespace
Icy.Assets.Importers
Assembly
IcyUI.dll

Represents a default implementation of the IImportContext type.

public record ImportContext : IImportContext, IEquatable<ImportContext>
Inheritance
ImportContext
Implements
Inherited Members
Extension Methods

Constructors

ImportContext(IAssetResolver, string?, IAssetContext, string?)

Represents a default implementation of the IImportContext type.

public ImportContext(IAssetResolver AssetResolver, string? DataFormat, IAssetContext ImportSource, string? ResourceName)

Parameters

AssetResolver IAssetResolver

An instance of the IAssetResolver to import assets.

DataFormat string

MIME-type for the data format for the requested asset.

ImportSource IAssetContext

The context from which the asset is loaded.

ResourceName string

Name of the loaded resource.

Properties

AssetResolver

An instance of the IAssetResolver to import assets.

public IAssetResolver AssetResolver { get; init; }

Property Value

IAssetResolver

DataFormat

MIME-type for the data format for the requested asset.

public string? DataFormat { get; init; }

Property Value

string

ImportSource

The context from which the asset is loaded.

public IAssetContext ImportSource { get; init; }

Property Value

IAssetContext

ResourceName

Name of the loaded resource.

public string? ResourceName { get; init; }

Property Value

string