Show / Hide Table of Contents

Interface IMaintenanceStore

Represents a store that can perform database maintenance.

Namespace: IRM.AspNetCore.Identity.EntityFrameworkCore
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public interface IMaintenanceStore

Methods

GetAllIndexes(CancellationToken)

Gets all indexes in the database.

Declaration
Task<List<DbIndex>> GetAllIndexes(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
System.Threading.Tasks.Task<List<DbIndex>>

The System.Threading.Tasks.Task that represents the asynchronous operation, containing a collection of indexes.

GetAllStatistics(CancellationToken)

Gets all statistics from the database.

Declaration
Task<List<DbStatistic>> GetAllStatistics(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
System.Threading.Tasks.Task<List<DbStatistic>>

The System.Threading.Tasks.Task that represents the asynchronous operation, containing a collection of statistics.

RebuildIndex(DbIndex, Boolean, CancellationToken)

Rebuilds the index.

Declaration
Task RebuildIndex(DbIndex index, bool online = true, CancellationToken cancellationToken = default(CancellationToken))
Parameters
DbIndex index

The DbIndex to rebuild.

Boolean online

true to rebuild the index online; otherwise false.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
System.Threading.Tasks.Task

The System.Threading.Tasks.Task that represents the asynchronous operation.

UpdateStatistics(DbStatistic, CancellationToken)

Updates the statistic.

Declaration
Task UpdateStatistics(DbStatistic statistic, CancellationToken cancellationToken = default(CancellationToken))
Parameters
DbStatistic statistic

The DbStatistic to update.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
System.Threading.Tasks.Task

The System.Threading.Tasks.Task that represents the asynchronous operation.

Back to top Generated by DocFX