CashChangerSimulator.Device.PosForDotNet 0.0.6-pre

This is a prerelease version of CashChangerSimulator.Device.PosForDotNet.
dotnet add package CashChangerSimulator.Device.PosForDotNet --version 0.0.6-pre
                    
NuGet\Install-Package CashChangerSimulator.Device.PosForDotNet -Version 0.0.6-pre
                    
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="CashChangerSimulator.Device.PosForDotNet" Version="0.0.6-pre" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CashChangerSimulator.Device.PosForDotNet" Version="0.0.6-pre" />
                    
Directory.Packages.props
<PackageReference Include="CashChangerSimulator.Device.PosForDotNet" />
                    
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 CashChangerSimulator.Device.PosForDotNet --version 0.0.6-pre
                    
#r "nuget: CashChangerSimulator.Device.PosForDotNet, 0.0.6-pre"
                    
#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 CashChangerSimulator.Device.PosForDotNet@0.0.6-pre
                    
#: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=CashChangerSimulator.Device.PosForDotNet&version=0.0.6-pre&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CashChangerSimulator.Device.PosForDotNet&version=0.0.6-pre&prerelease
                    
Install as a Cake Tool

CashChanger Simulator - Core

NuGet Version License: MIT

This repository contains the core logic and hardware device emulation for the CashChanger Simulator. It is designed as a modular foundational component that powers various user interfaces.

📦 NuGet Packages in this Repository

The following packages are maintained in this repository:

  • CashChangerSimulator.Core: Platform-independent core logic, currency calculation, and hardware event abstraction.
  • CashChangerSimulator.Device.Virtual: Pure C# virtual hardware simulation (works on Web/Linux/Windows, .NET 10).
  • CashChangerSimulator.Device.PosForDotNet: Windows-specific UPOS (POS for .NET) adapter for legacy integration.

User interface components are maintained in their own dedicated repositories: Cli (Command Line Interface) and Wpf (Windows Desktop UI).


Key Features (Platform-Independent Core)

  • Reactive Messaging (R3): Uses R3 for consistent state management (IsBusy, State) and asynchronous hardware event notifications.
  • Zero-Dependency Event Abstraction: High-layer components (Core/Cli) depend on abstracted event definitions, completely decoupled from Windows-specific libraries.
  • UPOS Compliant Behavior: Emulates DispenseChange, DispenseCash, and the full deposit cycle through a virtual device layer.
  • Multi-Platform Ready: The Core and Virtual Device projects have zero dependency on Windows-specific libraries, enabling use in Web APIs, CLIs, or Linux environments.
  • Reliable Lifecycle Management: Implements CompositeDisposable patterns for robust resource cleanup and memory leak prevention.

Setup

You can install the official packages via NuGet.org or GitHub Packages:

dotnet add package CashChangerSimulator.Core
dotnet add package CashChangerSimulator.Device.Virtual

Local Build

If you need to build from source:

# Build the core library and device simulator
dotnet build

🚀 Live Demo / Simulator API

The Virtual Cash Changer API is available on Google Cloud Run for testing without local setup:


Documentation

For more detailed information, please refer to the documents in the docs/ directory:


For the Japanese version, see README_JP.md.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
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
0.0.6-pre 89 4/8/2026
0.0.5-pre 76 4/8/2026
0.0.4-pre 74 4/7/2026
0.0.3-pre 68 4/6/2026
0.0.2-pre 72 4/6/2026
0.0.1-pre 82 4/3/2026