Class ImportContext
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
AssetResolverIAssetResolverAn instance of the IAssetResolver to import assets.
DataFormatstringMIME-type for the data format for the requested asset.ImportSourceIAssetContextThe context from which the asset is loaded.
ResourceNamestringName of the loaded resource.
Properties
AssetResolver
An instance of the IAssetResolver to import assets.
public IAssetResolver AssetResolver { get; init; }
Property Value
DataFormat
MIME-type for the data format for the requested asset.
public string? DataFormat { get; init; }
Property Value
ImportSource
The context from which the asset is loaded.
public IAssetContext ImportSource { get; init; }
Property Value
ResourceName
Name of the loaded resource.
public string? ResourceName { get; init; }