IAssetFileProvider

Provides read access to resolved asset content regardless of the backing storage.

Properties

ContentKey

(string) : Gets the logical content key for the resolved asset payload.

StorageKind

(AssetStorageKind) : Gets the backing storage kind used by this provider.

Exists

(bool) : Gets a value indicating whether the content currently exists.

Length

(long?) : Gets the content length in bytes when it can be determined; otherwise null.

Public Methods

GetAssetStream

 Stream GetAssetStream()

Opens the asset content for reading.

Returns: Stream

  • A readable stream for the asset payload.