Shuttle.Core.Serialization
21.0.1-rc1
Prefix Reserved
Suggested Alternatives
This is a prerelease version of Shuttle.Core.Serialization.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Shuttle.Core.Serialization --version 21.0.1-rc1
NuGet\Install-Package Shuttle.Core.Serialization -Version 21.0.1-rc1
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="Shuttle.Core.Serialization" Version="21.0.1-rc1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shuttle.Core.Serialization" Version="21.0.1-rc1" />
<PackageReference Include="Shuttle.Core.Serialization" />
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 Shuttle.Core.Serialization --version 21.0.1-rc1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Shuttle.Core.Serialization, 21.0.1-rc1"
#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 Shuttle.Core.Serialization@21.0.1-rc1
#: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=Shuttle.Core.Serialization&version=21.0.1-rc1&prerelease
#tool nuget:?package=Shuttle.Core.Serialization&version=21.0.1-rc1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.DependencyInjection (>= 10.0.3)
- Microsoft.Extensions.Options (>= 10.0.3)
- Shuttle.Core.Contract (>= 21.0.1-rc1)
NuGet packages (2)
Showing the top 2 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.Core.Json
Json.Net implementation of the `ISerializer` interface. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 21.0.1-rc2 | 371 | 3/21/2026 | |
| 21.0.1-rc1 | 267 | 2/28/2026 | |
| 21.0.1-beta | 269 | 2/7/2026 | |
| 21.0.0-alpha | 244 | 1/18/2026 | |
| 20.0.0 | 5,309 | 2/2/2025 | |
| 11.0.0 | 8,110 | 4/30/2024 | |
| 10.0.7 | 17,359 | 12/1/2022 | |
| 10.0.6 | 965 | 9/4/2022 | |
| 10.0.5 | 76,920 | 11/27/2020 | |
| 10.0.4 | 75,755 | 10/15/2018 | |
| 10.0.3 | 42,958 | 10/13/2018 | |
| 10.0.2 | 25,011 | 7/3/2018 | |
| 10.0.1 | 2,371 | 4/8/2018 | |
| 10.0.0 | 23,768 | 1/2/2018 |