Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core

Syntax

Microsoft.Restier.Core.RestierApiBuilder

Summary

This type is defined in Microsoft.Restier.Core.

Remarks

See Microsoft documentation for more information about the rest of the API.

Constructors

.ctor

Creates a new RestierApiBuilder instance.

Syntax

public RestierApiBuilder()

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

AddRestierApi Extension

Extension method from Microsoft.Restier.Core.RestierApiBuilderExtensions
Adds a Restier Api.

Syntax

public static Microsoft.Restier.Core.RestierApiBuilder AddRestierApi<TApi>(Microsoft.Restier.Core.RestierApiBuilder builder) where TApi : Microsoft.Restier.Core.ApiBase

Parameters

NameTypeDescription
builderMicrosoft.Restier.Core.RestierApiBuilderThe restier api builder.

Returns

Type: Microsoft.Restier.Core.RestierApiBuilder The RestierApiBuilder instance to allow for fluent method chaining.

Type Parameters

  • TApi - The type of the Api.

AddRestierApi Extension

Extension method from Microsoft.Restier.Core.RestierApiBuilderExtensions
Adds a restier Api and allows for service registration on the route container.

Syntax

public static Microsoft.Restier.Core.RestierApiBuilder AddRestierApi<TApi>(Microsoft.Restier.Core.RestierApiBuilder builder, System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> services) where TApi : Microsoft.Restier.Core.ApiBase

Parameters

NameTypeDescription
builderMicrosoft.Restier.Core.RestierApiBuilderThe restier api builder.
servicesSystem.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>The action to configure the services.

Returns

Type: Microsoft.Restier.Core.RestierApiBuilder

Type Parameters

  • TApi - The type of the Api.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?