Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core Inheritance: System.Object

Syntax

Summary

Represents a base class for an API.

Remarks

An API configuration is intended to be long-lived, and can be statically cached according to an API type specified when the configuration is created. Additionally, the API model produced as a result of a particular configuration is cached under the same API type to avoid re-computing it on each invocation.

Constructors

.ctor Inherited

Inherited from object

Syntax

Properties

ServiceProvider

Gets the IServiceProvider which contains all services.

Syntax

Property Value

Type: System.IServiceProvider

Methods

Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Syntax

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetApiService Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a service instance.

Syntax

Parameters

Returns

Type: T The service instance.

Type Parameters

  • T - The service type.

GetApiServices Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions

Syntax

Parameters

Returns

Type: System.Collections.Generic.IEnumerable<T>

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetModel Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Retrieves the IEdmModel used by this ApiBase instance.

Syntax

Parameters

Returns

Type: Microsoft.OData.Edm.IEdmModel The IEdmModel used by this ApiBase instance.

GetProperty Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a property.

Syntax

Parameters

Returns

Type: T The value of the property.

Type Parameters

  • T - The type of the property.

GetProperty Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a property.

Syntax

Parameters

Returns

Type: object The value of the property.

GetQueryableSource Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a queryable source of data using an API context.

Syntax

Parameters

Returns

Type: System.Linq.IQueryable A queryable source.

Remarks

If the name identifies a singleton or a composable function import whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated as the API engine only operates asynchronously.

GetQueryableSource Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a queryable source of data using an API context.

Syntax

Parameters

Returns

Type: System.Linq.IQueryable A queryable source.

Remarks

If the name identifies a composable function whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.

GetQueryableSource Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a queryable source of data using an API context.

Syntax

Parameters

Returns

Type: System.Linq.IQueryable<TElement> A queryable source.

Type Parameters

  • TElement - The type of the elements in the queryable source.

Remarks

If the name identifies a singleton or a composable function import whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.

GetQueryableSource Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Gets a queryable source of data using an API context.

Syntax

Parameters

Returns

Type: System.Linq.IQueryable<TElement> A queryable source.

Type Parameters

  • TElement - The type of the elements in the queryable source.

Remarks

If the name identifies a composable function whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

HasProperty Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Indicates if this object has a property.

Syntax

Parameters

Returns

Type: bool true if this object has the property; otherwise, false.

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

QueryAsync Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Asynchronously queries for data using an API context.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.Restier.Core.Query.QueryResult> A task that represents the asynchronous operation whose result is a query result.

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

RemoveProperty Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Removes a property.

Syntax

Parameters

SetProperty Extension

Extension method from Microsoft.Restier.Core.ApiBaseExtensions
Sets a property.

Syntax

Parameters

SubmitAsync

Asynchronously submits changes made using an API context.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.Restier.Core.Submit.SubmitResult> A task that represents the asynchronous operation whose result is a submit result.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • System.IDisposable