Partager via


IGraphProvider Interface

Definition

An interface implemented by plugins that know how to return Graph data.

public interface class IGraphProvider
public interface IGraphProvider
type IGraphProvider = interface
Public Interface IGraphProvider

Properties

Schema

Describes the types of node and link categories produced by this provider, Where each Node in the graph is the Id of a Node Category and each link between the nodes describes the type of navigations possible between nodes. Can return null, but implementing it allows for optimizing the calls to the provider.

Methods

BeginGetGraphData(IGraphContext)

Get some data for the given graph context. The provider should watch the CancellationToken and ThrowIfCancelled in regular places in case it is a long running operation and the caller has decided they don't want any more data. This call could come in on any thread, so the provider has to be able to handle that.

GetCommands(IEnumerable<GraphNode>)

Gets the GraphCommands that are available from this provider for the given set of nodes.

GetExtension<T>(GraphObject, T)

Gets the extension T for the given GraphObject.

Applies to