[]
        
(Showing Draft Content)

C1.DataCollection.SignalR.Client.C1ProxyDataCollection-1

C1ProxyDataCollection<T> Class

This collection is a client-side shadow of a collection in an ASP.NET core server.

Inheritance
C1ProxyDataCollection<T>
Namespace: C1.DataCollection.SignalR.Client
Assembly: C1.DataCollection.SignalR.Client.dll
Syntax
public class C1ProxyDataCollection<T> : C1VirtualDataCollection<T>, IDataCollection<T?>, IReadOnlyList<T?>, IReadOnlyCollection<T?>, IEnumerable<T?>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T?>, INotifyPropertyChanged, IDisposable, ISupportVirtualization, ISupportRefreshing, ISupportConnection, ISupportAsyncLoading<T>, ISupportSorting, ISupportFiltering, ISupportEditing<T>, ISupportIncrementalLoading, IAsyncDisposable where T : class
Type Parameters
Name Description
T
Remarks

This collection support data-virtualization to minimize the usage of the network. The size of the downloaded pages is configurable through PageSize

Constructors

Name Description
C1ProxyDataCollection(HubConnection)

Initializes a new instance of the C1ProxyDataCollection<T> class.

C1ProxyDataCollection(Uri)

Initializes a new instance of the C1ProxyDataCollection<T> class.

Properties

Name Description
Connection

The connection to the hub.

ETag

Gets a token used to resolve conflicts between different sources updating the same data.

HasMoreItems

Gets a value that indicates whether more items can be loaded.

Methods

Name Description
CanFilter(FilterExpression?)

Returns whether the collection is able to filter the specified filterExpression.

CanInsert(int, T)

Determines whether a new item can be inserted in the collection at the specified index.

CanMove(int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, T)

Determines whether the item at the specified index can be replaced in the collection.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sortDescriptions.

ConnectAsyncOverride(CancellationToken)

When overridden, this method is used to initialize the collection.

DisconnectAsyncOverride(CancellationToken)

When overridden, this method is used to finalize the collection.

DisposeAsync()
GetPageAsync(int, int, int, IReadOnlyList<SortDescription>?, FilterExpression?, CancellationToken)

When overridden in an inherited class it returns the items in the page as well as a token to the next page.

InsertAsyncOverride(int, T, CancellationToken)

This method is called when an item is inserted in the collection.

LoadMoreItemsAsync(int?, CancellationToken)

Loads more items.

MoveAsyncOverride(int, int, CancellationToken)

This method is called when an item is moved in the collection.

RemoveAsyncOverride(int, CancellationToken)

This method is called when an item is removed from the collection.

ReplaceAsyncOverride(int, T, CancellationToken)

This method is called when an item is replaced in the collection.