Shuttle.Core.Serialization
21.0.1-beta
Prefix Reserved
dotnet add package Shuttle.Core.Serialization --version 21.0.1-beta
NuGet\Install-Package Shuttle.Core.Serialization -Version 21.0.1-beta
<PackageReference Include="Shuttle.Core.Serialization" Version="21.0.1-beta" />
<PackageVersion Include="Shuttle.Core.Serialization" Version="21.0.1-beta" />
<PackageReference Include="Shuttle.Core.Serialization" />
paket add Shuttle.Core.Serialization --version 21.0.1-beta
#r "nuget: Shuttle.Core.Serialization, 21.0.1-beta"
#:package Shuttle.Core.Serialization@21.0.1-beta
#addin nuget:?package=Shuttle.Core.Serialization&version=21.0.1-beta&prerelease
#tool nuget:?package=Shuttle.Core.Serialization&version=21.0.1-beta&prerelease
Shuttle.Core.Serialization
Installation
dotnet add package Shuttle.Core.Serialization
The following implementation of the ISerializer interface is used to serialize objects into a Stream:
JsonSerializermakes use of theSystem.Text.Jsonserialization functionality.
Usage
JsonSerializer
services.AddJsonSerializer(builder => {
builder.Options = new JsonSerializerOptions
{
};
// or
builder.Options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
});
The builder.Options is of type JsonSerializerOptions.
Methods
Serialize
Task<Stream> SerializeAsync(object instance, CancellationToken cancellationToken = default);
Returns the object as a Stream.
Deserialize
Task<object> DeserializeAsync(Type type, Stream stream, CancellationToken cancellationToken = default);
Deserializes the Stream into an object of the given type.
| 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- Shuttle.Core.Contract (>= 21.0.1-beta)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Shuttle.Core.Serialization:
| Package | Downloads |
|---|---|
|
Shuttle.Esb
Contains the core Shuttle.Esb assembly that should always be referenced when building Shuttle.Esb solutions. |
|
|
Shuttle.Recall
Event sourcing mechanism. |
|
|
Shuttle.Core.Json
Json.Net implementation of the `ISerializer` interface. |
|
|
Shuttle.Core.Mediator.OpenTelemetry
OpenTelemetry instrumentation for Shuttle.Core.Mediator implementations. |
|
|
Shuttle.Hopper
Hopper is a flexible enterprise service bus which works with Azure Storage Queues, Amazon SQS, RabbitMQ, Kafka, and Event Hubs through a provider plugin API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 21.0.1-beta | 129 | 2/7/2026 |
| 21.0.0-alpha | 113 | 1/18/2026 |
| 20.0.0 | 4,428 | 2/2/2025 |
| 11.0.0 | 7,276 | 4/30/2024 |
| 10.0.7 | 16,942 | 12/1/2022 |
| 10.0.6 | 904 | 9/4/2022 |
| 10.0.5 | 76,459 | 11/27/2020 |
| 10.0.4 | 73,089 | 10/15/2018 |
| 10.0.3 | 41,262 | 10/13/2018 |
| 10.0.2 | 24,910 | 7/3/2018 |
| 10.0.1 | 2,298 | 4/8/2018 |
| 10.0.0 | 23,673 | 1/2/2018 |