Show / Hide Table of Contents

    Class PaginationBaseService<T>

    Inheritance
    System.Object
    PaginationBaseService<T>
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    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: LightQuery.Client
    Assembly: LightQuery.Client.dll
    Syntax
    public class PaginationBaseService<T> : INotifyPropertyChanged, IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    PaginationBaseService(String, Func<String, CancellationToken, Task<HttpResponseMessage>>, DefaultPaginationOptions)

    Declaration
    public PaginationBaseService(string baseUrl, Func<string, CancellationToken, Task<HttpResponseMessage>> getHttpAsync, DefaultPaginationOptions options = null)
    Parameters
    Type Name Description
    System.String baseUrl
    System.Func<System.String, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> getHttpAsync
    DefaultPaginationOptions options
    | Improve this Doc View Source

    PaginationBaseService(String, Func<String, Task<HttpResponseMessage>>, DefaultPaginationOptions)

    Declaration
    public PaginationBaseService(string baseUrl, Func<string, Task<HttpResponseMessage>> getHttpAsync, DefaultPaginationOptions options = null)
    Parameters
    Type Name Description
    System.String baseUrl
    System.Func<System.String, System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> getHttpAsync
    DefaultPaginationOptions options

    Properties

    | Improve this Doc View Source

    BaseUrl

    Declaration
    public string BaseUrl { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Page

    Declaration
    public int Page { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    PageSize

    Declaration
    public int PageSize { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    PaginationResult

    Declaration
    public IObservable<PaginationResult<T>> PaginationResult { get; }
    Property Value
    Type Description
    System.IObservable<PaginationResult<T>>
    | Improve this Doc View Source

    RequestRunning

    Declaration
    public IObservable<bool> RequestRunning { get; }
    Property Value
    Type Description
    System.IObservable<System.Boolean>
    | Improve this Doc View Source

    SortDescending

    Declaration
    public bool SortDescending { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SortProperty

    Declaration
    public string SortProperty { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ThenSortDescending

    Declaration
    public bool ThenSortDescending { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ThenSortProperty

    Declaration
    public string ThenSortProperty { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    ForceRefresh()

    Declaration
    public void ForceRefresh()
    | Improve this Doc View Source

    GetQueryParameter(String)

    Declaration
    public string GetQueryParameter(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    RemoveQueryParameter(String)

    Declaration
    public void RemoveQueryParameter(string name)
    Parameters
    Type Name Description
    System.String name
    | Improve this Doc View Source

    SetQueryParameter(String, String)

    Declaration
    public void SetQueryParameter(string name, string value = null)
    Parameters
    Type Name Description
    System.String name
    System.String value
    | Improve this Doc View Source

    SetSortProperty(String)

    Declaration
    public void SetSortProperty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName
    | Improve this Doc View Source

    SetSortProperty<TKey>(Expression<Func<T, TKey>>)

    Declaration
    public void SetSortProperty<TKey>(Expression<Func<T, TKey>> sortProperty)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, TKey>> sortProperty
    Type Parameters
    Name Description
    TKey
    | Improve this Doc View Source

    SetThenSortProperty(String)

    Declaration
    public void SetThenSortProperty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName
    | Improve this Doc View Source

    SetThenSortProperty<TKey>(Expression<Func<T, TKey>>)

    Declaration
    public void SetThenSortProperty<TKey>(Expression<Func<T, TKey>> sortProperty)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, TKey>> sortProperty
    Type Parameters
    Name Description
    TKey

    Events

    | Improve this Doc View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top © Georg Dangl