<PackageReference Include="System.ClientModel" Version="1.6.0" />

System.ClientModel.Primitives

Namespace with 42 public types

Classes

 ApiKeyAuthenticationPolicy A that uses an to set a value on a to authenticate with the cloud service.
 AuthenticationToken Represents an OAuth token and its metadata.
 BearerTokenPolicy A that uses an to authenticate requests.
 ClientCache A cache for storing client instances, ensuring efficient reuse. Implements an LRU eviction policy.
 ClientConnectionCollection Represents a collection of client connections.
 ClientLoggingOptions Exposes client options for logging within a .
 ClientPipeline Represents an extensible pipeline used by clients that call cloud services to send and receive HTTP request and responses. Creators of can modify how it process a by adding instances at various points in the default pipeline.
 ClientPipelineOptions Options that control the creation of a used by a service client to send and receive HTTP messages. Service clients must create a client-specific subtype of this class to pass to their constructors to allow for service-specific options with a client-wide scope.
 ClientRetryPolicy A used by a to decide whether or not to retry a .
 GetTokenOptions An interface implemented by auth flow interfaces supporting scopes.
 HttpClientPipelineTransport An implementation of that uses a to send and receive HTTP requests and responses.
 JsonModelConverter A generic converter which allows to be able to write and read any models that implement .
 MessageLoggingPolicy A used by a to log request and response information.
 ModelReaderWriterBuildableAttribute Instructs the System.ClientModel source generator to generate source code to help optimize performance when reading and writing instances of the specified type.
 ModelReaderWriterContextTypeAttribute Attribute to specify the context type for this assemblies for source generation.
 ModelReaderWriterOptions Provides the client options for reading and writing models.
 PersistableModelProxyAttribute Attribute that indicates a proxy to use for reading a model. The proxy must implement and have a public or non-public parameterless constructor.
 PipelineMessage Represents an HTTP message that can be sent from a . holds the request sent to the cloud service, and holds the response received from the service.
 RequestOptions Options that can be used to control the behavior of a request sent by a client.
 UserAgentPolicy A pipeline policy that adds user agent headers to HTTP requests.

Structures

 ClientConnection Represents the connection options for a client.

Enumerations

 ClientErrorBehaviors ClientErrorBehaviors controls the behavior of a service method when an unexpected response status code is received.
 CredentialKind Specifies the kind of connection used by the client.
 PipelinePosition The position at which to insert a into the default policy collection.

Static Classes

 ActivityExtensions Extensions for and that provide common Open Telemetry tracing functionality for clients built on System.ClientModel.
 ModelReaderWriter Provides functionality to read and write and .

Abstract Classes

 AsyncCollectionResult Represents a collection of values returned from a cloud service operation. The collection values may be delivered over one or more service responses.
 AuthenticationPolicy A for authentication.
 ClientConnectionProvider Abstract base class for managing client connections. Provides connection options for a specified client type and instance ID.
 CollectionResult Represents a collection of values returned from a cloud service operation. The collection values may be delivered over one or more service responses.
 ModelReaderWriterContext Context for to work with AOT.
 ModelReaderWriterTypeBuilder Provides an interface to create objects without needing reflection.
 OperationResult Represents an operation that runs asynchronously on a cloud service. Cloud services use long-running operations to allow users to start an operation with one request and then monitor progress of the operation until it has completed. enables waiting for completion of long-running operations. Client libraries provide derived types that add properties such as Value or Status as applicable for a given service operation.
 PipelineMessageClassifier A classifier that can evaluate a in two ways. First, given an HTTP message, the can determine whether the service response it holds should be considered an error response. Second, given an HTTP message and an optional pipeline exception, the classifier can determine whether or not the should retry the request.
 PipelinePolicy A policy that can be added to a to process a during a call to . Types deriving from can read or modify the , implement functionality based on , and must pass control to the next in the pipeline by calling .
 PipelineRequest Represents an HTTP request to be sent to a cloud service. The type of a is specific to the type of the used by the that sends the request. Because of this, is used to create an instance of for a given pipeline.
 PipelineRequestHeaders Represents the collection of HTTP headers on a .
 PipelineResponse Represents an HTTP response received from a cloud service.
 PipelineResponseHeaders A collection of HTTP response headers and their values.
 PipelineTransport Represents an HTTP pipeline transport used to send and receive HTTP requests and responses.

Interfaces

 IJsonModel`1 Allows an object to control its own JSON writing and reading.
 IPersistableModel`1 Allows an object to control its own writing and reading. The format is determined by the implementer.