Show / Hide Table of Contents

Method RefreshAsync

| Improve this Doc View Source

RefreshAsync(Func<Task<DataSet<T>>>, Boolean)

Refresh by reloading DataSet asynchronously.

Declaration
public Task RefreshAsync(Func<Task<DataSet<T>>> getDataSet, bool resetCriteria = false)
Parameters
Type Name Description
System.Func<System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to reload DataSet asynchronously.

System.Boolean resetCriteria

Indicates whether filtering and sorting criteria should be reseted.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

| Improve this Doc View Source

RefreshAsync(Func<Task<DataSet<T>>>, Func<T, Predicate<DataRow>>, Func<T, IComparer<DataRow>>)

Refresh by reloading DataSet asynchronously, with specified filtering condition and sorting comparer.

Declaration
public Task RefreshAsync(Func<Task<DataSet<T>>> getDataSet, Func<T, Predicate<DataRow>> getWhere, Func<T, IComparer<DataRow>> getOrderBy)
Parameters
Type Name Description
System.Func<System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to reload DataSet asynchronously.

System.Func<T, System.Predicate<DataRow>> getWhere

The delegate to return filtering condition.

System.Func<T, System.Collections.Generic.IComparer<DataRow>> getOrderBy

The delegate to return sorting comparer.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

| Improve this Doc View Source

RefreshAsync(Func<CancellationToken, Task<DataSet<T>>>, Boolean)

Refresh by reloading DataSet asynchronously.

Declaration
public Task RefreshAsync(Func<CancellationToken, Task<DataSet<T>>> getDataSet, bool resetCriteria = false)
Parameters
Type Name Description
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to reload DataSet asynchronously.

System.Boolean resetCriteria

Indicates whether filtering and sorting criteria should be reseted.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

| Improve this Doc View Source

RefreshAsync(Func<CancellationToken, Task<DataSet<T>>>, Func<T, Predicate<DataRow>>, Func<T, IComparer<DataRow>>)

Refresh by reloading DataSet asynchronously, with specified filtering condition and sorting comparer.

Declaration
public Task RefreshAsync(Func<CancellationToken, Task<DataSet<T>>> getDataSet, Func<T, Predicate<DataRow>> getWhere, Func<T, IComparer<DataRow>> getOrderBy)
Parameters
Type Name Description
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to reload DataSet asynchronously.

System.Func<T, System.Predicate<DataRow>> getWhere

The delegate to return filtering condition.

System.Func<T, System.Collections.Generic.IComparer<DataRow>> getOrderBy

The delegate to return sorting comparer.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest