Interface IAppRedirectStore
Defines methods for accessing application URL redirects from a data store.
Namespace: DataWeb.Http
Assembly: DataWeb.Core.dll
Syntax
public interface IAppRedirectStore
Properties
Name
Gets the name of the data store.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetAppRedirectAsync(AppRedirectFilter, CancellationToken)
Retrieves the first application URL redirect from the data store that matches the specified filter.
Declaration
Task<AppRedirect> GetAppRedirectAsync(AppRedirectFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppRedirectFilter | filter | A AppRedirectFilter object specifying the filter to apply to the results. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AppRedirect> | An AppRedirect object representing the matching redirect, or |
GetAppRedirectsAsync(AppRedirectFilter, CancellationToken)
Retrieves all application URL redirects from the data store that match the specified filter.
Declaration
Task<IEnumerable<AppRedirect>> GetAppRedirectsAsync(AppRedirectFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AppRedirectFilter | filter | A AppRedirectFilter object specifying the filter to apply to the results. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<AppRedirect>> | An IEnumerable<T> of AppRedirect objects. |
GetAppRedirectsCachedAsync(CancellationToken)
Retrieves all application URL redirects from the data store using a cached result.
Declaration
Task<IEnumerable<AppRedirect>> GetAppRedirectsCachedAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<AppRedirect>> | An IEnumerable<T> of AppRedirect objects. |