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
optionsIOptions<ReportConverterOptions>The options for performing the conversion.
reportConverterIConvertsReportJsonToHtmlThe report converter instance to use for conversion.
Methods
ExecuteAsync(CancellationToken)
Executes the background service operation.
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
stoppingTokenCancellationTokenA token that can be used to stop the operation.
Returns
- Task
A task that represents the asynchronous operation.