Class HttpStructuredStore
IStructuredStore implementation backed by a remote HTTP structured-store
service. See WireProtocol.md next to this file for the full wire shape.
Inheritance
HttpStructuredStore
Assembly: Serenity.StructuredPersistence.Http.dll
Syntax
public class HttpStructuredStore : IStructuredStore
Constructors
HttpStructuredStore(HttpClient, HttpStructuredStoreConfiguration, ILogService)
Declaration
public HttpStructuredStore(HttpClient httpClient, HttpStructuredStoreConfiguration configuration, ILogService logService)
Parameters
| Type |
Name |
Description |
| HttpClient |
httpClient |
The shared System.Net.Http.HttpClient instance used for every request. Callers must never
construct a new System.Net.Http.HttpClient per store — share one instance across the
application's lifetime.
|
| HttpStructuredStoreConfiguration |
configuration |
The remote service configuration.
|
| ILogService |
logService |
Logging service used to report retries and failures. May be null.
|
Properties
Namespace
Declaration
public string Namespace { get; }
Property Value
Methods
CountAsync(StoreTable, IReadOnlyList<FieldFilter>, IReadOnlyList<string>, CancellationToken)
Declaration
public Task<long> CountAsync(StoreTable table, IReadOnlyList<FieldFilter> filters, IReadOnlyList<string> distinctBy, CancellationToken cancellationToken)
Parameters
Returns
DeleteByQueryAsync(StoreTable, IReadOnlyList<FieldFilter>, CancellationToken)
Declaration
public Task DeleteByQueryAsync(StoreTable table, IReadOnlyList<FieldFilter> filters, CancellationToken cancellationToken)
Parameters
Returns
EnsureSchemaAsync(StructuredTableSchema, CancellationToken)
Declaration
public Task EnsureSchemaAsync(StructuredTableSchema schema, CancellationToken cancellationToken)
Parameters
Returns
HealthCheckAsync(CancellationToken)
Declaration
public Task<bool> HealthCheckAsync(CancellationToken cancellationToken)
Parameters
Returns
InsertAsync(StoreTable, StructuredRecord, StructuredTrim, CancellationToken)
Declaration
public Task InsertAsync(StoreTable table, StructuredRecord record, StructuredTrim trim, CancellationToken cancellationToken)
Parameters
Returns
QueryAsync(StoreTable, StructuredQuery, CancellationToken)
Declaration
public Task<IReadOnlyList<StructuredRecord>> QueryAsync(StoreTable table, StructuredQuery query, CancellationToken cancellationToken)
Parameters
Returns
TrimBeyondAsync(StoreTable, IReadOnlyList<FieldFilter>, IReadOnlyList<OrderField>, int, CancellationToken)
Declaration
public Task TrimBeyondAsync(StoreTable table, IReadOnlyList<FieldFilter> scopeFilters, IReadOnlyList<OrderField> ordering, int keepCount, CancellationToken cancellationToken)
Parameters
Returns
UpsertIfBetterAsync(StoreTable, StructuredRecord, IReadOnlyList<string>, string, StructuredSortDirection, StructuredTrim, CancellationToken)
Declaration
public Task UpsertIfBetterAsync(StoreTable table, StructuredRecord record, IReadOnlyList<string> keyFields, string comparisonField, StructuredSortDirection betterDirection, StructuredTrim trim, CancellationToken cancellationToken)
Parameters
Returns
Implements