Table of Contents

Class TopicCatalogWriter

Namespace
Virtufin.Api.Services
Assembly
Virtufin.Api.dll

Flushes TopicCatalog every few seconds.

public sealed class TopicCatalogWriter : BackgroundService, IHostedService, IDisposable
Inheritance
TopicCatalogWriter
Implements
Inherited Members

Constructors

TopicCatalogWriter(IServiceProvider, ILogger<TopicCatalogWriter>)

Flushes TopicCatalog every few seconds.

public TopicCatalogWriter(IServiceProvider services, ILogger<TopicCatalogWriter> logger)

Parameters

services IServiceProvider
logger ILogger<TopicCatalogWriter>

Methods

ExecuteAsync(CancellationToken)

This method is called when the 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 StopAsync(CancellationToken) is called.

Returns

Task

A Task that represents the long running operations.

Remarks

See Worker Services in .NET for implementation guidelines.