System.ClientModel 1.0.0
System.ClientModel library for .NET
System.ClientModel provides shared primitives, abstractions, and helpers for .NET service client libraries.
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
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
|
21 |
|
Azure.AI.Translation.Text
This is the Text Translation client library for developing .NET applications with rich experience.
|
20 |
|
Azure.Core
This is the implementation of the Azure Client Pipeline
|
15 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
14 |
|
Azure.AI.OpenAI
Azure OpenAI's official extension package for using OpenAI's .NET library with the Azure OpenAI Service.
|
13 |
|
Azure.Search.Documents
This is the Azure Cognitive Search client library for developing .NET
applications with rich search experiences. It enables you to query your
indexes, update documents in your indexes, and manage indexes, synonym
maps, indexers, data sources, or other service-level resources.
|
12 |
|
Azure.Search.Documents
This is the Azure Cognitive Search client library for developing .NET
applications with rich search experiences. It enables you to query your
indexes, update documents in your indexes, and manage indexes, synonym
maps, indexers, data sources, or other service-level resources.
|
11 |
|
Azure.Core
This is the implementation of the Azure Client Pipeline
|
9 |
|
Azure.Core
This is the implementation of the Azure Client Pipeline
|
8 |
|
Azure.AI.Inference
This is the Microsoft Azure AI Inference Service client library
|
8 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
8 |
|
Azure.Search.Documents
This is the Azure Cognitive Search client library for developing .NET
applications with rich search experiences. It enables you to query your
indexes, update documents in your indexes, and manage indexes, synonym
maps, indexers, data sources, or other service-level resources.
|
7 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
7 |
|
Azure.AI.Inference
This is the Microsoft Azure AI Inference Service client library
|
7 |
|
Azure.Core
This is the implementation of the Azure Client Pipeline
|
7 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
6 |
|
OpenAI
This is the OpenAI client library for developing .NET applications with rich experience.
|
6 |
|
OpenAI
The official .NET library for the OpenAI service API.
|
5 |
.NET 6.0
- System.Memory.Data (>= 1.0.2)
- System.Text.Json (>= 4.7.2)
.NET Standard 2.0
- System.Memory.Data (>= 1.0.2)
- System.Text.Json (>= 4.7.2)