DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="2.17.1.4055" />

 ContextDataProviderAttribute

This attribute is used to specify the Type of class that implements IContextDataProvider interface in the specified assembly. This attribute can be used only once at assembly level. Having this attribute saves the cost of reflection on each exported types to find the type that implements IContextDataProvider interface.
public bool CapturesData { get; }

Checks if this type can capture data interactively

public Type Type { get; }

Type implementing IContextDataProvider interface.

public ContextDataProviderAttribute(Type dataProviderType, Func<bool> capturesData)

Constructor to construct this attribute with a delegate to check whether this data provider captures data.

public ContextDataProviderAttribute(Type dataProviderType)

Constructor