ObservableValue 1.2.0

A class representing a value that when updated (posted) signals changes to observers.
Will post current value (if initialized) when subscribing.  Synchronized to ensure ordering.
Compatible with IObservable<T> and System.Reactive.

Install-Package ObservableValue -Version 1.2.0
dotnet add package ObservableValue --version 1.2.0
<PackageReference Include="ObservableValue" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ObservableValue --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ObservableValue, 1.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ObservableValue as a Cake Addin
#addin nuget:?package=ObservableValue&version=1.2.0

// Install ObservableValue as a Cake Tool
#tool nuget:?package=ObservableValue&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ObservableValue

NuGet

A simple observable (IObservable<T>) that when its value is updated (value changes), its observers are notified.
Will post current value (if initialized) when subscribing. Synchronized to ensure ordering.

System.Reactive is included and can be used to extend its behavior.

Usage

Namespace

using Open.Observable;

Creating

var value = new ObservableValue<int>(1 /* optional initial value */);

or

var value = ObservableValue.Create(1); // type inferred

Subscribing

value.Subscribe(v => { /* do something with the value */ });

Updating

var changed = value.Post(2);

ObservableValue

NuGet

A simple observable (IObservable<T>) that when its value is updated (value changes), its observers are notified.
Will post current value (if initialized) when subscribing. Synchronized to ensure ordering.

System.Reactive is included and can be used to extend its behavior.

Usage

Namespace

using Open.Observable;

Creating

var value = new ObservableValue<int>(1 /* optional initial value */);

or

var value = ObservableValue.Create(1); // type inferred

Subscribing

value.Subscribe(v => { /* do something with the value */ });

Updating

var changed = value.Post(2);

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ObservableValue:

Package Downloads
Open.TaskManager.Common
Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 241 7/3/2020
1.1.1 208 7/1/2020