Class ChangeFeedWorker
- Namespace
- FoundationaLLM.Core.Worker
- Assembly
- FoundationaLLM.Core.Worker.dll
Background service that runs the Change Feed Processor.
public class ChangeFeedWorker : BackgroundService, IHostedService, IDisposable- Inheritance
- 
      
      
      ChangeFeedWorker
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangeFeedWorker(ILogger<ChangeFeedWorker>, TelemetryClient, ICosmosDbChangeFeedService)
Instantiates a new instance of the ChangeFeedWorker.
public ChangeFeedWorker(ILogger<ChangeFeedWorker> logger, TelemetryClient telemetryClient, ICosmosDbChangeFeedService cosmosDbChangeFeedService)Parameters
- loggerILogger<ChangeFeedWorker>
- The logging interface used to log under the ChangeFeedWorker type name. 
- telemetryClientTelemetryClient
- The telemetry client sends events, metrics, and other telemetry to the App Insights service. 
- cosmosDbChangeFeedServiceICosmosDbChangeFeedService
- The Cosmos DB change feed processor that performs the event processing tasks for the worker. 
Methods
ExecuteAsync(CancellationToken)
Executes the Change Feed Processor.
protected override Task ExecuteAsync(CancellationToken stoppingToken)Parameters
- stoppingTokenCancellationToken