Interface IDataSourceService
Singleton application service contract providing the data source for a specific property.
Namespace: Kephas.Data.DataSources
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract]
public interface IDataSourceService
Methods
| Improve this Doc View SourceGetDataSourceAsync(IPropertyInfo, IDataSourceContext, CancellationToken)
Gets the data source asynchronously.
Declaration
Task<IEnumerable<object>> GetDataSourceAsync(IPropertyInfo propertyInfo, IDataSourceContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IPropertyInfo | propertyInfo | Information describing the property. |
IDataSourceContext | context | The context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>> | The list source promise. |