Class DataExportContextExtensions
Extensions for IDataExportContext.
Inheritance
System.Object
DataExportContextExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.IO.Export
Assembly: Kephas.Data.IO.dll
Syntax
public static class DataExportContextExtensions
Methods
| Improve this Doc View SourceEnsureResult(IDataExportContext, Func<IOperationResult>)
Ensures that a result is set in the options.
Declaration
public static IOperationResult EnsureResult(this IDataExportContext dataExportContext, Func<IOperationResult> resultFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IDataExportContext | dataExportContext | The data export context. |
System.Func<IOperationResult> | resultFactory | The result factory (optional). |
Returns
Type | Description |
---|---|
IOperationResult | The result, once it is set into the context. |
GetResult(IDataExportContext)
Gets the result from the options.
Declaration
public static IOperationResult GetResult(this IDataExportContext dataExportContext)
Parameters
Type | Name | Description |
---|---|---|
IDataExportContext | dataExportContext | The data export context. |
Returns
Type | Description |
---|---|
IOperationResult | The result, once it is set into the options. |
WithClientQueryExecutionContextConfig(IDataExportContext, Action<IClientQueryExecutionContext>)
Sets the client query execution context configuration.
Declaration
public static IDataExportContext WithClientQueryExecutionContextConfig(this IDataExportContext dataExportContext, Action<IClientQueryExecutionContext> clientQueryExecutionContextConfig)
Parameters
Type | Name | Description |
---|---|---|
IDataExportContext | dataExportContext | The data export context to act on. |
System.Action<IClientQueryExecutionContext> | clientQueryExecutionContextConfig | The client query execution context configuration. |
Returns
Type | Description |
---|---|
IDataExportContext | The data export context. |