Table of Contents

Class RegistryMaintenanceService

Namespace
Datafication.Server.Core.Services
Assembly
Datafication.Server.Core.dll

Background service responsible for registry maintenance, cleanup, and optimization.

public class RegistryMaintenanceService : BackgroundService
Inheritance
object
BackgroundService
RegistryMaintenanceService

Constructors

RegistryMaintenanceService(IServiceProvider, IOptions<MetaRegistryOptions>)

public RegistryMaintenanceService(IServiceProvider serviceProvider, IOptions<MetaRegistryOptions> options)

Parameters

serviceProvider IServiceProvider
options IOptions<MetaRegistryOptions>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

ExecuteAsync(CancellationToken)

This method is called when the Microsoft.Extensions.Hosting.IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.

protected override Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Triggered when Microsoft.Extensions.Hosting.IHostedService.StopAsync(System.Threading.CancellationToken) is called.

Returns

Task

A System.Threading.Tasks.Task that represents the long running operations.

Remarks

See Worker Services in .NET for implementation guidelines.