System.ClientModel 1.0.0-beta.3

System.ClientModel library for .NET

System.ClientModel provides shared primitives, abstractions, and helpers for .NET service client libraries.

Source code | Package (NuGet)

Getting started

Typically, you will not need to install System.ClientModel. it will be installed for you when you install one of the client libraries using it.

Install the package

Install the client library for .NET with NuGet.

dotnet add package System.ClientModel --prerelease

Prerequisites

None needed for System.ClientModel.

Key concepts

The main shared concepts of System.ClientModel include:

  • Providing APIs to read and write models in different formats.

Examples

Simple ModelReaderWriter usage

As a library author you can implement IPersistableModel<T> or IJsonModel<T> which will give library users the ability to read and write your models.

Example writing an instance of a model.

InputModel model = new InputModel();
BinaryData data = ModelReaderWriter.Write(model);

Example reading a model from json

string json = @"{
  ""x"": 1,
  ""y"": 2,
  ""z"": 3
}";
OutputModel? model = ModelReaderWriter.Read<OutputModel>(BinaryData.FromString(json));

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Showing the top 20 packages that depend on System.ClientModel.

Packages Downloads
Azure.Core
This is the implementation of the Azure Client Pipeline
23
Azure.Core
This is the implementation of the Azure Client Pipeline
22
Azure.Core
This is the implementation of the Azure Client Pipeline
19
Azure.Core
This is the implementation of the Azure Client Pipeline
13
Azure.Core
This is the implementation of the Azure Client Pipeline
11
Azure.Core
This is the implementation of the Azure Client Pipeline
10
Azure.Core
This is the implementation of the Azure Client Pipeline
6

Version Downloads Last updated
1.2.1 5 10/16/2024
1.2.0 4 10/6/2024
1.1.0 10 9/18/2024
1.1.0-beta.7 12 8/15/2024
1.1.0-beta.6 11 8/3/2024
1.1.0-beta.5 17 7/12/2024
1.1.0-beta.4 19 5/25/2024
1.1.0-beta.3 16 4/14/2024
1.1.0-beta.2 17 3/1/2024
1.1.0-beta.1 17 3/1/2024
1.0.0 23 3/1/2024
1.0.0-beta.4 18 3/18/2024
1.0.0-beta.3 19 2/29/2024
1.0.0-beta.2 17 2/29/2024
1.0.0-beta.1 22 2/29/2024