Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Execution Inheritance: System.Object

Syntax

Summary

The HTTP result of an OData call.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Body

Gets or sets the response body.

Syntax

Property Value

Type: string

BodyStream

Gets or sets the response body stream when the executor kept the OData output as written.

Syntax

Property Value

Type: System.IO.Stream?

Remarks

Prefer this over ODataExecuteResult.Body for in-process success. Do not dispose it; the executor owns it.

IsSuccess

Gets or sets a value indicating whether the status code is success.

Syntax

Property Value

Type: bool

MediaType

Gets or sets the response media type.

Syntax

Property Value

Type: string?

RetryAfter

Gets or sets the Retry-After header, when the service sent one.

Syntax

Property Value

Type: string?

StatusCode

Gets or sets the HTTP status code.

Syntax

Property Value

Type: int

WwwAuthenticate

Gets or sets raw WWW-Authenticate header values, when the service sent any.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyList<string>

Remarks

Values are unparsed challenge strings. OAuth interpretation lives outside Core.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

FromHttp

Copies status, body, media type, and Retry-After from an HTTP response.

Syntax

Parameters

Returns

Type: Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult The execute result.

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?