Back to Orleans

Microsoft Orleans Serialization Abstractions

src/Orleans.Serialization.Abstractions/README.md

10.1.01.8 KB
Original Source

Microsoft Orleans Serialization Abstractions

Introduction

Orleans Serialization Abstractions package provides the core interfaces and attributes needed for Orleans serialization. This package contains the definitions used for serialization but not the serialization implementation itself.

Getting Started

To use this package, install it via NuGet:

shell
dotnet add package Microsoft.Orleans.Serialization.Abstractions

This package is automatically included when you reference the Orleans Serialization package or Orleans SDK.

Example

csharp
using Orleans.Serialization;

// Define a serializable class
[GenerateSerializer]
public class MyData
{
    [Id(0)]
    public string Name { get; set; }
    
    [Id(1)]
    public int Age { get; set; }
    
    [Id(2)]
    public List<string> Tags { get; set; }
}

Documentation

For more comprehensive documentation, please refer to:

Feedback & Contributing