[]
        
(Showing Draft Content)

C1.DataCollection.SignalR.Server.C1DataCollectionHub-1

C1DataCollectionHub<T> Class

Base Hub implementation for proxy collections.

Inheritance
C1DataCollectionHub<T>
Implements
Namespace: C1.DataCollection.SignalR.Server
Assembly: C1.DataCollection.SignalR.Server.dll
Syntax
public abstract class C1DataCollectionHub<T> : Hub, IDisposable where T : class
Type Parameters
Name Description
T

Constructors

Name Description
C1DataCollectionHub(IHubClients)

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

C1DataCollectionHub(IHubClients, IEnumerable)

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

Properties

Name Description
Clients

Gets the clients of the hub.

Source

The source collection to be shadowed.

Methods

Name Description
GetCollection(HubCallerContext)

Gets the collection to be shadowed.

GetPageAsync(Guid, int, int, IReadOnlyList<SortDescription>?, FilterExpression?)

Gets a page of data as specified in the parameters.

InitializeAsync()

Initializes the collection.

InsertAsync(Guid, int, T)

Inserts the specified item at the specified index in the collection.

LoadMoreItemsAsync(Guid, int?)

Load more items into the collection.

MoveAsync(Guid, int, int)

Moves an item from the specified position to the new one.

OnConnectedAsync()
OnDisconnectedAsync(Exception?)
RemoveAsync(Guid, int)

Removes the item at the specified index from the collection.

ReplaceAsync(Guid, int, T)

Replaces the item at the specified index by the new specified item.