Table of Contents

Class ReportConverterApplication

Namespace
CSF.Screenplay.JsonToHtmlReport
Assembly
CSF.Screenplay.JsonToHtmlReport.dll

An application/background service that begins the JSON to HTML report conversion process.

public class ReportConverterApplication : BackgroundService, IHostedService, IDisposable
Inheritance
ReportConverterApplication
Implements
Inherited Members

Constructors

ReportConverterApplication(IOptions<ReportConverterOptions>, IConvertsReportJsonToHtml)

Initializes a new instance of the ReportConverterApplication class.

public ReportConverterApplication(IOptions<ReportConverterOptions> options, IConvertsReportJsonToHtml reportConverter)

Parameters

options IOptions<ReportConverterOptions>

The options for performing the conversion.

reportConverter IConvertsReportJsonToHtml

The report converter instance to use for conversion.

Methods

ExecuteAsync(CancellationToken)

Executes the background service operation.

protected override Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

A token that can be used to stop the operation.

Returns

Task

A task that represents the asynchronous operation.