Table of Contents

Interface IResourceConfiguration

Namespace
Bonsai.Resources
Assembly
Bonsai.System.dll

Provides a mechanism for loading different types of resources.

public interface IResourceConfiguration

Properties

Name

Gets the identifier of the resource.

string Name { get; }

Property Value

string

Type

Gets the type of the resource.

Type Type { get; }

Property Value

Type

Methods

CreateResource(ResourceManager)

Creates the contents of the resource using the specified resource manager.

IDisposable CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The ResourceManager object onto which the resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.

Returns

IDisposable

A IDisposable object which can be used to access and release the resource contents.