ข้ามไปยังเนื้อหา

Class OpenSearchDataEngineBuilderExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Data.OpenSearch.Registration
Assembly: Cephalon.Data.OpenSearch.dll

Registers the OpenSearch data companion pack with an .

public static class OpenSearchDataEngineBuilderExtensions

objectOpenSearchDataEngineBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddOpenSearchData(EngineBuilder, string, Action<OpenSearchDataOptions>?)

Section titled “ AddOpenSearchData(EngineBuilder, string, Action<OpenSearchDataOptions>?)”

Adds the OpenSearch data pack with the supplied node URI.

public static EngineBuilder AddOpenSearchData(this EngineBuilder builder, string uri, Action<OpenSearchDataOptions>? configure = null)

builder EngineBuilder

The engine builder to extend.

uri string

The OpenSearch node URI.

configure Action<OpenSearchDataOptions>?

An optional callback that configures the host-owned OpenSearch pack options.

EngineBuilder

The same engine builder for fluent composition.

AddOpenSearchData(EngineBuilder, Action<OpenSearchDataOptions>)

Section titled “ AddOpenSearchData(EngineBuilder, Action<OpenSearchDataOptions>)”

Adds the OpenSearch data pack using an options callback that can bind from configuration.

public static EngineBuilder AddOpenSearchData(this EngineBuilder builder, Action<OpenSearchDataOptions> configure)

builder EngineBuilder

The engine builder to extend.

configure Action<OpenSearchDataOptions>

The callback that configures the host-owned OpenSearch pack options, including and .

EngineBuilder

The same engine builder for fluent composition.

Use either or . Leaving both unset falls back to http://localhost:9200.