Class LazyDocument
Implements
Inherited Members
Namespace: OpenSearch .Client
Assembly: OpenSearch.Client.dll
Syntax
public class LazyDocument : ILazyDocument
Methods
| Edit this page View SourceAs(Type)
Creates an instance of objectType from this
ILazy
Declaration
public object As(Type objectType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type |
Returns
| Type | Description |
|---|---|
| object |
AsAsync(Type, CancellationToken)
Creates an instance of objectType from this
ILazy
Declaration
public Task<object> AsAsync(Type objectType, CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type |
| Cancellation |
ct |
Returns
| Edit this page View SourceAsAsync<T>(CancellationToken)
Creates an instance of T from this
ILazy
Declaration
public Task<T> AsAsync<T>(CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Cancellation |
ct |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type |
As<T>()
Creates an instance of T from this
ILazy
Declaration
public T As<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The type |