ProcessedValue.R3 1.1.0

dotnet add package ProcessedValue.R3 --version 1.1.0
                    
NuGet\Install-Package ProcessedValue.R3 -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ProcessedValue.R3" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ProcessedValue.R3" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="ProcessedValue.R3" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ProcessedValue.R3 --version 1.1.0
                    
#r "nuget: ProcessedValue.R3, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ProcessedValue.R3@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ProcessedValue.R3&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ProcessedValue.R3&version=1.1.0
                    
Install as a Cake Tool

ProcessedValue.R3

ProcessedValue.R3 is an extension of ProcessedValue for the R3 library. ProcessedValue.R3 allows using reactive variables from R3 in Commands for Processed. Commands now store subscriptions to reactive variables. When a reactive variable is updated, the command marks ProcessedValues as dirty.

The main methods of the classes remain the same as in ProcessedValue.
See also: https://github.com/GeroiGorodskoyZastroiki/ProcessedValue

Requirements

  • ProcessedValue — required dependency (project reference to ProcessedValue project)
  • R3 — reactive programming library (version 1.3.0 or later, via NuGet)

Main Components

  • DisposableCommand<TSort, TValue> — command with R3 reactive subscriptions support
  • DisposableProcessed<TSort, TValue> — container with commands and IDisposable support
  • ReactiveProcessed<TSort, TValue> — reactive container with automatic value updates

Usage

Simple Command with Reactive Variable

// Create DisposableCommand and pass ReactiveProperty through constructor
ReactiveProperty<bool> reactiveProperty = new ReactiveProperty<bool>();
DisposableCommand<bool> disposableCommand = new DisposableCommand<bool>(
    (ref bool value) => value = reactiveProperty.Value, 
    new object[] { reactiveProperty }
);

// Add ReactiveProperty manually
disposableCommand.AddSubscriptionsToReactiveProperties(new object[] { reactiveProperty });

// Add single ReactiveProperty manually
disposableCommand.AddSubscriptionToReactiveProperty<bool>(ref reactiveProperty);

Command Management

// Create DisposableProcessed and add command
DisposableProcessed<bool> disposableProcessed = new DisposableProcessed<bool>();
disposableProcessed.AddCommand(disposableCommand, 0);

// Add regular commands alongside DisposableCommand
Command<bool> command = new Command<bool>((ref bool x) => x = false);
disposableProcessed.AddCommand(command, 0);

// Remove command by priority
disposableProcessed.RemoveCommand(command, 0);

// Remove command from all priorities
disposableProcessed.RemoveCommandAtAll(command);

// Check if command exists
bool exists = disposableProcessed.ContainsCommand(command);

Reactive Processed with Subscription

// Create ReactiveProcessed
ReactiveProcessed<bool> reactiveProcessed = new ReactiveProcessed<bool>();

// Subscribe to value changes - automatically recalculates when dirty
reactiveProcessed.Value.Subscribe(newValue => 
{
    Console.WriteLine($"Value updated: {newValue}");
    OnValueChanged(newValue);
});

// You can also get current value directly
bool currentValue = reactiveProcessed.Value.Value;

Lifecycle Management

// Dispose command subscriptions to ReactiveProperty
disposableCommand.Dispose();

// Dispose Processed - remove from list to set dirty on ReactiveProperty update for each command
disposableProcessed.Dispose();

Shortnames

Each class has a shortname:

Class Shortname
DisposableCommand<TValue> DCommand<TValue>
DisposableCommand<TSort, TValue> DCommand<TSort, TValue>
DisposableProcessed<TValue> DProcessed<TValue>
DisposableProcessed<TSort, TValue> DProcessed<TSort, TValue>
ReactiveProcessed<TValue> RProcessed<TValue>
ReactiveProcessed<TSort, TValue> RProcessed<TSort, TValue>
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 108 4/2/2026
1.0.0 318 4/14/2025