Interface ILazyDocument
A lazily deserialized document
Namespace: OpenSearch .Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ILazyDocument
Methods
| Edit this page View SourceAs(Type)
Creates an instance of objectType
from this
ILazy
Declaration
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
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
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
T As<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type |