- Added
JsonModelConverter
to allow integration with System.Text.Json.
- Removed
ReturnWhen
enum in favor of using boolwaitUntilCompleted
parameter in third-party client LRO method signatures. - Added abstract
UpdateStatus
method toOperationResult
.
- Added
OperationResult
andReturnWhen
types to support long-running operations.
- Added support for delaying retrying a request until after the interval specified on a response
Retry-After
header.
- Added
AsyncPageCollection<T>
andPageCollection<T>
types as return types from paginated service operations, andContinuationToken
type for resuming collection state across processes.
- Renamed
AsyncResultCollection<T>
andResultCollection<T>
toAsyncCollectionResult<T>
andCollectionResult<T>
to standardize use of theResult
suffix in type names. - Removed
AsyncPageableCollection<T>
andPageableCollection<T>
that previously represented collections of items rather than collections of pages of items, and renamedResultPage<T>
toPageResult<T>
.
- Added
BufferResponse
property toRequestOptions
so protocol method callers can turn off response buffering if desired. - Added
AsyncResultCollection<T>
andResultCollection<T>
for clients to return from service methods where the service response contains a collection of values. - Added
AsyncPageableCollection<T>
,PageableCollection<T>
andResultPage<T>
for clients to return from service methods where collection values are delivered to the client over one or more service responses. - Added
SetRawResponse
method toClientResult
to allow the response held by the result to be changed, for example by derived types that obtain multiple responses from polling the service.
ClientResult.GetRawResponse
will now throwInvalidOperationException
if called before the result's raw response is set, for example by collection result types that delay sending a request to the service until the collection is enumerated.
- Added protected
Apply(PipelineMessage)
method toRequestOptions
so that derived types can extend its functionality. - Added
Create(Stream)
overload toBinaryContent
.
- Removed
[Serializable]
attribute and serialization constructor fromClientResultException
. - Made
value
parameter nullable inPipelineMessage.SetProperty
method. - Made
options
parameter toPipelineMessage.Apply
nullable.
- Added
ExtractResponse
method toPipelineMessage
to enable returning an undisposedPipelineResponse
from protocol methods. - Added
CreateAsync
factory method toClientResultException
to allow creating exceptions in an async context. - Added an implicit cast from
string
toApiKeyCredential
. - Added an implicit cast from
ClientResult<T>
toT
.
- Changed
HttpClientPipelineTransport.Shared
andClientRetryPolicy.Default
from static readonly fields to static properties. - Changed
PipelineResponse.Content
property from abstract to virtual. - Removed the
ResponseBufferingPolicy
and moved response buffering functionality intoPipelineTransport
. - Made
CancellationToken
parameter passed toBinaryContent.WriteTo
optional.
- Initial preview release of convenience types in the System.ClientModel namespace, including
ClientResult<T>
,KeyCredential
, andClientResultException
. - Initial preview release of pipeline types, including
ClientPipeline
,PipelinePolicy
, andPipelineMessage
.
- Initial release of ModelReaderWriter APIs for reading and writing models in different formats.
ModelReaderWriter
andModelReaderWriterOptions
have moved to System.ClientModel.Primitives namespaceJsonModelConverter
was removed.
- ModelReaderWriter APIs for reading and writing models in different formats.