DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="1.0.0-beta1" />

 ContextDataProviderAttribute

public sealed class ContextDataProviderAttribute : Attribute
using System; namespace Autodesk.DesignScript.Runtime { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)] public sealed class ContextDataProviderAttribute : Attribute { private Func<bool> mCapturesData = () => true; public Type Type { get; set; } public bool CapturesData => mCapturesData(); public ContextDataProviderAttribute(Type dataProviderType, Func<bool> capturesData) { Type = dataProviderType; if (capturesData != null) mCapturesData = capturesData; } public ContextDataProviderAttribute(Type dataProviderType) { Type = dataProviderType; } } }