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 : IHostedService
Inheritance
ReportConverterApplication
Implements
Inherited Members

Constructors

ReportConverterApplication(IOptions<ReportConverterOptions>, IConvertsReportJsonToHtml, IHostApplicationLifetime)

Initializes a new instance of the ReportConverterApplication class.

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

Parameters

options IOptions<ReportConverterOptions>

The options for performing the conversion.

reportConverter IConvertsReportJsonToHtml

The report converter instance to use for conversion.

lifetime IHostApplicationLifetime

The application lifetime

Methods

StartAsync(CancellationToken)

Executes the application, to perform its work.

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A cancellation token

Returns

Task

A task

StopAsync(CancellationToken)

Unused, always returns a completed task.

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A cancellation token

Returns

Task

A task