Share via


ResourceExplorer Class

Definition

Class which gives standard access to content resources.

public class ResourceExplorer : IDisposable
type ResourceExplorer = class
    interface IDisposable
Public Class ResourceExplorer
Implements IDisposable
Inheritance
ResourceExplorer
Implements

Constructors

ResourceExplorer()

Initializes a new instance of the ResourceExplorer class.

ResourceExplorer(IEnumerable<ResourceProvider>, IEnumerable<IComponentDeclarativeTypes>)
Obsolete.

Initializes a new instance of the ResourceExplorer class.

ResourceExplorer(IEnumerable<ResourceProvider>)
Obsolete.

Initializes a new instance of the ResourceExplorer class.

ResourceExplorer(ResourceExplorerOptions)

Initializes a new instance of the ResourceExplorer class.

Properties

ResourceProviders

Gets the resource providers.

ResourceTypes

Gets the resource type id extensions that you want to manage.

Methods

AddResourceProvider(ResourceProvider)

Add a resource provider to the resources managed by the resource explorer.

AddResourceType(String)

Add a resource Type to resource list.

BuildType<T>(String, JToken, JsonSerializer)

Build type for given $kind using the JToken/serializer as the source.

Dispose()

Dispose of internal resources.

Dispose(Boolean)

Disposes objected used by the class.

GetKindsForType(Type)

Get the $kind for a type.

GetKindsForType<T>()

Get the $kind for a type.

GetResource(String)

Get resource by id.

GetResources(String)

Get resources of a given type.

GetTypeForKind(String)

Get the type for $kind.

IsRef(JToken)

Determine if token is a reference.

LoadType<T>(Resource)

Create Type from resource.

LoadType<T>(String)

Create Type from resource.

LoadTypeAsync<T>(Resource, CancellationToken)

Create Type from resource.

OnChanged(Resource[])

Handler for on changed events.

Refresh()

Reload any cached data.

RegisterType(String, Type, ICustomDeserializer)

Register a declarative type with the resource loader system.

RegisterType<T>(String, ICustomDeserializer)

Register a declarative type with the resource loader system.

ResolveRefAsync(JToken, SourceContext, CancellationToken)

Resolves a ref to the actual object.

TryGetResource(String, Resource)

Try to get the resource by id.

Events

Changed

Event which fires when a resource is changed.

Extension Methods

AddFolder(ResourceExplorer, String, Boolean, Boolean)

Add a folder resource.

AddFolders(ResourceExplorer, String, String[], Boolean)

Add folder resources.

LoadProject(ResourceExplorer, String, String[], Boolean)

Add a .csproj as resource (adding the project, referenced projects and referenced packages).

Applies to