Show / Hide Table of Contents

Interface IDataSourceProvider

Singleton application service contract providing the data source for editors.

Namespace: Kephas.Data.DataSources
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true)]
public interface IDataSourceProvider

Methods

| Improve this Doc View Source

CanHandle(IPropertyInfo, IDataSourceContext)

Determines whether the provider can handle the data source request.

Declaration
bool CanHandle(IPropertyInfo propertyInfo, IDataSourceContext context)
Parameters
Type Name Description
IPropertyInfo propertyInfo

Information describing the property.

IDataSourceContext context

The context.

Returns
Type Description
System.Boolean

True if we can handle, false if not.

| Improve this Doc View Source

GetDataSourceAsync(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>>

A promise of the data source.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX