Class DefaultDataSourceService
A default data source service.
Inheritance
System.Object
DefaultDataSourceService
Implements
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.DataSources
Assembly: Kephas.Data.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultDataSourceService : IDataSourceService
Constructors
| Improve this Doc View SourceDefaultDataSourceService(ICollection<IExportFactory<IDataSourceProvider, AppServiceMetadata>>)
Initializes a new instance of the DefaultDataSourceService class.
Declaration
public DefaultDataSourceService(ICollection<IExportFactory<IDataSourceProvider, AppServiceMetadata>> providerFactories)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<IExportFactory<IDataSourceProvider, AppServiceMetadata>> | providerFactories | The provider factories. |
Methods
| Improve this Doc View SourceGetDataSourceAsync(IPropertyInfo, IDataSourceContext, CancellationToken)
Gets the data source asynchronously.
Declaration
public 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 | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>> | A promise of the data source. |