Wickra.Xray
0.1.2
dotnet add package Wickra.Xray --version 0.1.2
NuGet\Install-Package Wickra.Xray -Version 0.1.2
<PackageReference Include="Wickra.Xray" Version="0.1.2" />
<PackageVersion Include="Wickra.Xray" Version="0.1.2" />
<PackageReference Include="Wickra.Xray" />
paket add Wickra.Xray --version 0.1.2
#r "nuget: Wickra.Xray, 0.1.2"
#:package Wickra.Xray@0.1.2
#addin nuget:?package=Wickra.Xray&version=0.1.2
#tool nuget:?package=Wickra.Xray&version=0.1.2
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 | Versions 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. |
-
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.