[]
This collection is a client-side shadow of a collection in an ASP.NET core server.
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
| Name | Description |
|---|---|
| T |
This collection support data-virtualization to minimize the usage of the network. The size of the downloaded pages is configurable through PageSize
| Name | Description |
|---|---|
| C1ProxyDataCollection(HubConnection) | Initializes a new instance of the C1ProxyDataCollection<T> class. |
| C1ProxyDataCollection(Uri) | Initializes a new instance of the C1ProxyDataCollection<T> class. |
| 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. |
| Name | Description |
|---|---|
| CanFilter(FilterExpression?) | Returns whether the collection is able to filter the specified |
| CanInsert(int, T) | Determines whether a new item can be inserted in the collection at the specified |
| CanMove(int, int) | Determines whether the item at |
| CanRemove(int) | Determines whether the item at the specified |
| CanReplace(int, T) | Determines whether the item at the specified |
| CanSort(params SortDescription[]) | Returns whether the collection is able to sort the specified |
| 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. |