Incursa.Qlog.Import
1.1.3
Prefix Reserved
dotnet add package Incursa.Qlog.Import --version 1.1.3
NuGet\Install-Package Incursa.Qlog.Import -Version 1.1.3
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="Incursa.Qlog.Import" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Incursa.Qlog.Import" Version="1.1.3" />
<PackageReference Include="Incursa.Qlog.Import" />
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 Incursa.Qlog.Import --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Incursa.Qlog.Import, 1.1.3"
#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 Incursa.Qlog.Import@1.1.3
#: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=Incursa.Qlog.Import&version=1.1.3
#tool nuget:?package=Incursa.Qlog.Import&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Incursa.Qlog.Import
Incursa.Qlog.Import is the sibling qlog import package built on Incursa.Qlog.
Install
dotnet add package Incursa.Qlog.Import
What It Covers
- hydration of the repository's contained qlog JSON output back into the retained model
- hydration of the repository's sequential JSON Text Sequences output back into the retained model
- hydration of the repository's contained qlog CBOR output back into the retained model
- string, Stream, and contained CBOR import entry points
- opaque-member preservation for unknown qlog data during rehydration
Minimal Example
using System;
using System.IO;
using Incursa.Qlog;
using Incursa.Qlog.Import;
using Incursa.Qlog.Serialization.Cbor;
using Incursa.Qlog.Serialization.Json;
QlogFile file = new();
QlogTrace trace = new()
{
Title = "Example trace",
VantagePoint = new QlogVantagePoint
{
Type = QlogKnownValues.ClientVantagePoint,
},
};
trace.EventSchemas.Add(new Uri("urn:ietf:params:qlog:events:example"));
trace.Events.Add(new QlogEvent
{
Time = 0,
Name = "example:connection_started",
});
file.Traces.Add(trace);
string containedJson = QlogJsonSerializer.Serialize(file);
QlogFile contained = QlogImportSerializer.Deserialize(containedJson);
QlogFile sequentialFile = new()
{
FileSchema = QlogKnownValues.SequentialFileSchemaUri,
SerializationFormat = QlogKnownValues.SequentialJsonTextSequencesSerializationFormat,
};
sequentialFile.Traces.Add(trace);
string sequentialText = QlogJsonTextSequenceSerializer.Serialize(sequentialFile);
QlogFile sequential = QlogImportSerializer.Deserialize(sequentialText);
byte[] cbor = QlogCborSerializer.Serialize(file);
QlogFile containedCbor = QlogImportSerializer.DeserializeContainedCbor(new MemoryStream(cbor));
Notes
- Use
QlogImportSerializer.Deserialize(...)when you want the package to detect whether the input is contained JSON or sequential JSON Text Sequences. - Use the explicit contained or sequential methods when you already know the format.
- Use
DeserializeContainedCbor(Stream)when you already have repository-produced contained CBOR payloads. - Replay execution still belongs above this package; the importer only rehydrates retained qlog model objects.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Incursa.Qlog (>= 1.1.3)
- System.Formats.Cbor (>= 10.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.