VL.CoreLib.Addons abstracts common use case patterns to bridge the gap between VL's visual patching APIs and C# code APIs.
$ dotnet add package VL.CoreLib.AddonsThe aim of this library is to bridge the gap between VL's visual patching APIs and C# code APIs. Currently in vvvv/vl, some APIs are only available via patches, some are complex to understand, and others are not easily extensible. While developing libraries, I found that I had to reimplement the same functionality in different ways, so I decided to create a small library to abstract common use case patterns.
The StetefulDelegate namespace provides components to wrap stateful logic (Create/Update patterns common in VL) into standard .NET Func<TIn, TOut> delegates. This enables the usage of stateful process nodes within code-based workflows that expect simple delegates.
The StatefullDelegatePatch<TState, TIn, TOut> is a Process Node that:
Output property of type Func<TIn, TOut>. Invoking this delegate executes the patch's logic using the internal state.nuget install VL.CoreLib.Addons
This library is in its early stages and may undergo significant changes.
Issues avalible via issues. Questions can be askend on forum.
Try it with vvvv, the visual live-programming environment for .NET
Download: http://visualprogramming.net