Wickra.Xray 0.1.2

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

Wickra X-Ray — C#

C# bindings for the wickra-xray data-driven core over its C ABI hub (source-generated P/Invoke). Build an Xray from a spec JSON, drive it with command JSON, read back render frames — the same protocol as every other binding.

Install

dotnet add package Wickra.Xray

Usage

using Wickra.Xray;

const string spec = """
{"dataset_ref":"mini","symbol":"AAA",
"panels":[{"kind":"footprint","price_bin":1.0,"bucket_ms":60000}]}
""";

using var xray = new Xray(spec);

xray.Command("""
{"cmd":"load","dataset":{"trades":[
{"ts":1000,"price":100.4,"qty":2.0,"side":"buy"}]}}
""");

string frame = xray.Command("""{"cmd":"frame"}""");
Console.WriteLine(frame);
Console.WriteLine(Xray.Version());

API

Member Description
new Xray(string specJson) Build an xray from a spec JSON (throws ArgumentException on an invalid spec).
string Command(string cmdJson) Apply a command JSON, return the response JSON.
static string Version() The library version.
Dispose() Free the native handle (via IDisposable).

Domain errors (a bad spec, an unknown command) come back in-band as {"ok":false,"error":...} JSON. The native library is located by a DllImportResolver that probes the default search paths and the Cargo target/ directory, validating each candidate with a sentinel export check.

License

MIT OR Apache-2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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.1.2 0 9/13/2026
0.1.1 44 9/11/2026
0.1.0 49 9/11/2026