1.6.0
11 Aug 25
Toggle Dropdown
Version 1
1.7.0
22 Sep 25
1.6.1
20 Aug 25
1.6.0
11 Aug 25
1.5.1
15 Jul 25
1.3.0
6 Feb 25
1.2.1
9 Oct 24
1.2.0
3 Oct 24
1.1.0
17 Sep 24
1.1.0-beta.7
14 Aug 24
1.1.0-beta.6
1 Aug 24
Compare to version...
with 1.2.1
Toggle Dropdown
Version 1
1.7.0
22 Sep 25
1.6.1
20 Aug 25
1.6.0
11 Aug 25
1.5.1
15 Jul 25
1.3.0
6 Feb 25
1.2.1
9 Oct 24
1.2.0
3 Oct 24
1.1.0
17 Sep 24
1.1.0-beta.7
14 Aug 24
1.1.0-beta.6
1 Aug 24
Download Package
Open in NuGet
<
PackageReference
Include
=
"System.ClientModel"
Version
=
"1.6.0"
/>
API Differences between 1.6.0 and 1.2.1
103
Additions
0
Removals
System.ClientModel
public
abstract
class
AuthenticationTokenProvider
protected
AuthenticationTokenProvider
()
public
abstract
GetTokenOptions
CreateTokenOptions
(
IReadOnlyDictionary
<
string
,
object
>
properties
)
public
abstract
AuthenticationToken
GetToken
(
GetTokenOptions
options
,
CancellationToken
cancellationToken
)
public
abstract
ValueTask
<
AuthenticationToken
>
GetTokenAsync
(
GetTokenOptions
options
,
CancellationToken
cancellationToken
)
public
abstract
class
BinaryContent
:
IDisposable
public
string
MediaType
{
get
;
protected set
; }
public
static
BinaryContent
CreateJson
<
T
>(
T
jsonSerializable
,
JsonSerializerOptions
options
=
null
)
public
static
BinaryContent
CreateJson
<
T
>(
T
jsonSerializable
,
JsonTypeInfo
<
T
>
jsonTypeInfo
)
public
static
BinaryContent
CreateJson
(
string
jsonString
,
bool
validate
=
false
)
System.ClientModel.Primitives
public
static
class
ActivityExtensions
public
static
Activity
MarkClientActivityFailed
(
this
Activity
activity
,
Exception
exception
)
public
static
Activity
StartClientActivity
(
this
ActivitySource
activitySource
,
ClientPipelineOptions
options
,
string
name
,
ActivityKind
kind
=
0
,
ActivityContext
parentContext
=
default
,
IEnumerable
<
KeyValuePair
<
string
,
object
>>
tags
=
null
)
public
abstract
class
AuthenticationPolicy
:
PipelinePolicy
protected
AuthenticationPolicy
()
public
class
AuthenticationToken
public
DateTimeOffset
?
ExpiresOn
{
get
; }
public
DateTimeOffset
?
RefreshOn
{
get
; }
public
string
TokenType
{
get
; }
public
string
TokenValue
{
get
; }
public
AuthenticationToken
(
string
tokenValue
,
string
tokenType
,
DateTimeOffset
expiresOn
,
DateTimeOffset
?
refreshOn
=
default
)
public
class
BearerTokenPolicy
:
AuthenticationPolicy
public
BearerTokenPolicy
(
AuthenticationTokenProvider
tokenProvider
,
IEnumerable
<
IReadOnlyDictionary
<
string
,
object
>>
contexts
)
public
BearerTokenPolicy
(
AuthenticationTokenProvider
tokenProvider
,
string
scope
)
public
class
ClientCache
public
ClientCache
(
int
maxSize
)
public
T
GetClient
<
T
>(
object
clientId
,
Func
<
T
>
createClient
)
public
struct
ClientConnection
public
object
Credential
{
get
; }
public
CredentialKind
CredentialKind
{
get
; }
public
string
Id
{
get
; }
public
string
Locator
{
get
; }
public
IReadOnlyDictionary
<
string
,
string
>
Metadata
{
get
; }
public
ClientConnection
(
string
id
,
string
locator
,
object
credential
,
CredentialKind
credentialKind
)
public
ClientConnection
(
string
id
,
string
locator
)
public
bool
TryGetLocatorAsUri
(
out
Uri
uri
)
public
class
ClientConnectionCollection
:
KeyedCollection
<
string
,
ClientConnection
>
public
ClientConnectionCollection
()
public
void
AddRange
(
IEnumerable
<
ClientConnection
>
connections
)
public
abstract
class
ClientConnectionProvider
public
ClientCache
Subclients
{
get
; }
protected
ClientConnectionProvider
(
int
maxCacheSize
)
public
abstract
IEnumerable
<
ClientConnection
>
GetAllConnections
()
public
abstract
ClientConnection
GetConnection
(
string
connectionId
)
public
class
ClientLoggingOptions
public
IList
<
string
>
AllowedHeaderNames
{
get
; }
public
IList
<
string
>
AllowedQueryParameters
{
get
; }
public
bool
?
EnableLogging
{
get
;
set
; }
public
bool
?
EnableMessageContentLogging
{
get
;
set
; }
public
bool
?
EnableMessageLogging
{
get
;
set
; }
public
ILoggerFactory
LoggerFactory
{
get
;
set
; }
public
int
?
MessageContentSizeLimit
{
get
;
set
; }
public
ClientLoggingOptions
()
protected
void
AssertNotFrozen
()
public
virtual
void
Freeze
()
public
sealed
class
ClientPipeline
public
PipelineMessage
CreateMessage
(
Uri
uri
,
string
method
,
PipelineMessageClassifier
classifier
=
null
)
public
class
ClientPipelineOptions
public
ClientLoggingOptions
ClientLoggingOptions
{
get
;
set
; }
public
bool
?
EnableDistributedTracing
{
get
;
set
; }
public
PipelinePolicy
MessageLoggingPolicy
{
get
;
set
; }
public
class
ClientRetryPolicy
:
PipelinePolicy
public
ClientRetryPolicy
(
int
maxRetries
,
bool
enableLogging
,
ILoggerFactory
loggerFactory
)
public
enum
CredentialKind
ApiKeyString
=
1
None
=
0
TokenCredential
=
2
public
class
GetTokenOptions
public
const
string
AuthorizationUrlPropertyName
=
"authorizationUrl"
public
const
string
RefreshUrlPropertyName
=
"refreshUrl"
public
const
string
ScopesPropertyName
=
"scopes"
public
const
string
TokenUrlPropertyName
=
"tokenUrl"
public
IReadOnlyDictionary
<
string
,
object
>
Properties
{
get
; }
public
GetTokenOptions
(
IReadOnlyDictionary
<
string
,
object
>
properties
)
public
class
HttpClientPipelineTransport
:
PipelineTransport
,
IDisposable
public
HttpClientPipelineTransport
(
HttpClient
client
,
bool
enableLogging
,
ILoggerFactory
loggerFactory
)
public
class
JsonModelConverter
:
JsonConverter
<
IJsonModel
<
object
>>
public
JsonModelConverter
(
ModelReaderWriterOptions
options
,
ModelReaderWriterContext
context
)
public
class
MessageLoggingPolicy
:
PipelinePolicy
public
static
MessageLoggingPolicy
Default
{
get
; }
public
MessageLoggingPolicy
(
ClientLoggingOptions
options
=
null
)
public
static
class
ModelReaderWriter
public
static
T
Read
<
T
>(
BinaryData
data
,
ModelReaderWriterOptions
options
,
ModelReaderWriterContext
context
)
public
static
object
Read
(
BinaryData
data
,
Type
returnType
,
ModelReaderWriterOptions
options
,
ModelReaderWriterContext
context
)
public
static
BinaryData
Write
<
T
>(
T
model
,
ModelReaderWriterOptions
options
,
ModelReaderWriterContext
context
)
public
static
BinaryData
Write
(
object
model
,
ModelReaderWriterOptions
options
,
ModelReaderWriterContext
context
)
public
class
ModelReaderWriterBuildableAttribute
:
Attribute
public
ModelReaderWriterBuildableAttribute
(
Type
type
)
public
abstract
class
ModelReaderWriterContext
protected
ModelReaderWriterContext
()
public
ModelReaderWriterTypeBuilder
GetTypeBuilder
(
Type
type
)
public
bool
TryGetTypeBuilder
(
Type
type
,
out
ModelReaderWriterTypeBuilder
builder
)
protected
virtual
bool
TryGetTypeBuilderCore
(
Type
type
,
out
ModelReaderWriterTypeBuilder
builder
)
public
sealed
class
ModelReaderWriterContextTypeAttribute
:
Attribute
public
ModelReaderWriterContextTypeAttribute
(
Type
contextType
)
public
abstract
class
ModelReaderWriterTypeBuilder
protected
abstract
Type
BuilderType
{
get
; }
protected
virtual
Type
ItemType
{
get
; }
protected
ModelReaderWriterTypeBuilder
()
protected
virtual
void
AddItem
(
object
collectionBuilder
,
object
item
)
protected
virtual
void
AddItemWithKey
(
object
collectionBuilder
,
string
key
,
object
item
)
protected
virtual
object
ConvertCollectionBuilder
(
object
collectionBuilder
)
protected
abstract
object
CreateInstance
()
protected
virtual
IEnumerable
GetItems
(
object
collection
)
public
abstract
class
PipelineTransport
:
PipelinePolicy
protected
PipelineTransport
(
bool
enableLogging
,
ILoggerFactory
loggerFactory
)
public
class
UserAgentPolicy
:
PipelinePolicy
public
string
ApplicationId
{
get
; }
public
Assembly
Assembly
{
get
; }
public
string
UserAgentValue
{
get
; }
public
UserAgentPolicy
(
Assembly
callerAssembly
,
string
applicationId
=
null
)